Path Traversal in Moment.js
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 20 fixed, 22 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| moment | moment | 1.0.1 to before 2.29.2 | 2.29.2 | Patch available | CNA |
| — | moment (npm) | before 2.29.2 | 2.29.2 | Patch available | GHSA-8hfj-j24r-96c4 |
| — | Moment.js (NuGet) | before 2.29.2 | 2.29.2 | Patch available | GHSA-8hfj-j24r-96c4 |
- moment Vendormoment Affected 1.0.1 to before 2.29.2 Fixed in 2.29.2 Patch available CNA
- moment (npm) Vendor— Affected before 2.29.2 Fixed in 2.29.2 Patch available GHSA-8hfj-j24r-96c4
- Moment.js (NuGet) Vendor— Affected before 2.29.2 Fixed in 2.29.2 Patch available GHSA-8hfj-j24r-96c4
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:* | 1.0.1 to before 2.29.2 | Vulnerable | moment |
| cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:* | 1.0.1 to before 2.29.2 | Vulnerable | moment |
| cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* | before 5.21.0 | Vulnerable | Tenable |
| cpe:2.3:a:netapp:active_iq:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:* Versions 1.0.1 to before 2.29.2 Vulnerable ·moment
- cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:* Versions 1.0.1 to before 2.29.2 Vulnerable ·moment
- cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* Versions before 5.21.0 Vulnerable ·Tenable
- cpe:2.3:a:netapp:active_iq:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA moment (moment) Fixed in 2.29.2
- Fix · GHSA-8hfj-j24r-96c4 moment (npm) Fixed in 2.29.2 Advisory →
- Fix · GHSA-8hfj-j24r-96c4 Moment.js (NuGet) Fixed in 2.29.2 Advisory →
Red Hat 23 advisories
- RHSA-2025:4437 Released 2025-05-05 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.13 security update
- Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server eap7-activemq-artemis-2.9.0-10.redhat_00021.1.el7eap, eap7-activemq-artemis-cli-2.9.0-10.redhat_00021.1.el7eap, eap7-activemq-artemis-commons-2.9.0-10.redhat_00021.1.el7eap +44
- RHSA-2025:4226 Released 2025-04-28 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.1.10 on RHEL 7 security update
- Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-activemq-artemis-1.5.5.016-1.redhat_00001.1.ep7.el7, eap7-activemq-artemis-cli-1.5.5.016-1.redhat_00001.1.ep7.el7, eap7-activemq-artemis-commons-1.5.5.016-1.redhat_00001.1.ep7.el7 +22
- RHSA-2023:3954 Released 2023-06-29 · Red Hat rating CriticalRed Hat Fuse 7.12 release and security update
- Red Hat Fuse 7.12
Show 20 more Red Hat advisories
- RHSA-2023:3642 Released 2023-06-15 · Red Hat rating ImportantRed Hat Ceph Storage 6.1 Container security and bug fix update
- Red Hat Ceph Storage 6.1 Tools rhceph/keepalived-rhel9, rhceph/rhceph-6-dashboard-rhel9, rhceph/rhceph-6-rhel9 +3
- RHSA-2023:1043 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el7sso
- RHSA-2023:1049 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 security update
- Red Hat Single Sign-On 7
- RHSA-2023:1047 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 for OpenShift image security and enhancement update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
- RHSA-2023:1045 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el9sso
- RHSA-2023:1044 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el8sso
- RHSA-2023:0076 Released 2023-01-11 · Red Hat rating ModerateRed Hat Ceph Storage 5.3 security update and Bug Fix
- Red Hat Ceph Storage 5.3 MON ceph-2:16.2.10-94.el8cp, ceph-base-2:16.2.10-94.el8cp, ceph-common-2:16.2.10-94.el8cp +30
- Red Hat Ceph Storage 5.3 OSD ceph-2:16.2.10-94.el8cp, ceph-base-2:16.2.10-94.el8cp, ceph-common-2:16.2.10-94.el8cp +20
- Red Hat Ceph Storage 5.3 Tools ceph-2:16.2.10-94.el8cp, ceph-2:16.2.10-94.el9cp, ceph-base-2:16.2.10-94.el8cp +47
- RHSA-2022:8652 Released 2022-11-28 · Red Hat rating ImportantRed Hat Fuse 7.11.1 release and security update
- Red Hat Fuse 7.11.1
- RHSA-2022:7055 Released 2022-10-19 · Red Hat rating ModerateRHOSDT 2.6.0 operator/operand containers Security Update
- Red Hat OpenShift distributed tracing 2.6 rhosdt/opentelemetry-collector-rhel8, rhosdt/opentelemetry-rhel8-operator
- RHSA-2022:6813 Released 2022-10-05 · Red Hat rating ImportantRed Hat Process Automation Manager 7.13.1 security update
- RHPAM 7.13.1 async
- RHSA-2022:6277 Released 2022-08-31 · Red Hat rating ModerateRed Hat OpenShift Service Mesh 2.1.5 security update
- OpenShift Service Mesh 2.1 servicemesh-2.1.5-1.el8, servicemesh-cni-2.1.5-1.el8, servicemesh-operator-2.1.5-1.el8 +6
- RHSA-2022:6272 Released 2022-08-31 · Red Hat rating ModerateRed Hat OpenShift Service Mesh 2.0.11 security update
- OpenShift Service Mesh 2.0 servicemesh-prometheus-2.14.0-18.el8.1
- RHSA-2022:6156 Released 2022-08-24 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.11.0 security, enhancement, & bugfix update
- RHODF 4.11 for RHEL 8 odf4/cephcsi-rhel8, odf4/mcg-core-rhel8, odf4/mcg-rhel8-operator +12
- RHSA-2022:5201 Released 2022-06-27 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.5 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
- RHSA-2022:5006 Released 2022-06-13 · Red Hat rating ImportantRed Hat OpenShift Service Mesh 2.1.3 Containers security update
- OpenShift Service Mesh 2.1 openshift-service-mesh/kiali-rhel8
- RHSA-2022:4956 Released 2022-06-09 · Red Hat rating ImportantRed Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.5 for RHEL 8 rhacm2/acm-cluster-proxy-rhel8, rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8 +47
- RHSA-2022:4919 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8
- Red Hat JBoss EAP 7.4 for RHEL 8 eap7-activemq-artemis-2.16.0-9.redhat_00042.1.el8eap, eap7-activemq-artemis-cli-2.16.0-9.redhat_00042.1.el8eap, eap7-activemq-artemis-commons-2.16.0-9.redhat_00042.1.el8eap +47
- RHSA-2022:4918 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 7
- Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-activemq-artemis-2.16.0-9.redhat_00042.1.el7eap, eap7-activemq-artemis-cli-2.16.0-9.redhat_00042.1.el7eap, eap7-activemq-artemis-commons-2.16.0-9.redhat_00042.1.el7eap +47
- RHSA-2022:4922 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update
- Red Hat JBoss Enterprise Application Platform com.fasterxml.jackson.core.jackson-databind-2.12.6.1-redhat-00003.jar, com.h2database.h2-1.4.197.redhat-00004.jar, io.netty.netty-codec-4.1.72.Final-redhat-00001.jar +8
- RHSA-2022:1681 Released 2022-05-03 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.4 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat Ceph Storage 4 | Affected | No fix planned: Will not fix |
| Red Hat Ceph Storage 5 | Affected | No fix yet |
| Red Hat Data Grid 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel K 1 | Affected | No fix yet: Fix deferred |
| Red Hat Integration Data Virtualisation Operator | Affected | No fix planned: Out of support scope |
| Red Hat Integration Service Registry | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift GitOps | Affected | No fix yet |
| Red Hat OpenShift distributed tracing 2 | Affected | No fix yet |
| Red Hat Openshift Container Storage 4 | Affected | No fix planned: Out of support scope |
| Red Hat Openshift Data Foundation 4 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Virtualization 4 | Affected | No fix planned: Out of support scope |
| Red Hat build of Apicurio Registry 2 | Affected | No fix yet |
| Middleware Containers for OpenShift | Fixed | RHSA-2023:1047 |
| OpenShift Service Mesh 2.0 | Fixed | RHSA-2022:6272 |
| OpenShift Service Mesh 2.1 | Fixed | RHSA-2022:5006, RHSA-2022:6277 |
| RHODF 4.11 for RHEL 8 | Fixed | RHSA-2022:6156 |
| RHPAM 7.13.1 async | Fixed | RHSA-2022:6813 |
| Red Hat Ceph Storage 5.3 MON | Fixed | RHSA-2023:0076 |
| Red Hat Ceph Storage 5.3 OSD | Fixed | RHSA-2023:0076 |
| Red Hat Ceph Storage 5.3 Tools | Fixed | RHSA-2023:0076 |
| Red Hat Ceph Storage 6.1 Tools | Fixed | RHSA-2023:3642 |
| Red Hat Fuse 7.11.1 | Fixed | RHSA-2022:8652 |
| Red Hat Fuse 7.12 | Fixed | RHSA-2023:3954 |
| Red Hat JBoss EAP 7.4 for RHEL 7 Server | Fixed | RHSA-2022:4918 |
| Red Hat JBoss EAP 7.4 for RHEL 8 | Fixed | RHSA-2022:4919 |
| Red Hat JBoss Enterprise Application Platform | Fixed | RHSA-2022:4922 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server | Fixed | RHSA-2025:4437 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2023:1049 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2023:1043 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2023:1044 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2023:1045 |
Not affected: 17 products
- OpenShift Service Mesh 2.0
- OpenShift Service Mesh 2.1
- RHODF 4.11 for RHEL 8
- Red Hat Ceph Storage 5.3 MON
- Red Hat Ceph Storage 5.3 Tools
- Red Hat Ceph Storage 6.1 Tools
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Integration Camel Quarkus 1
- Red Hat JBoss EAP 7.4 for RHEL 7 Server
- Red Hat JBoss EAP 7.4 for RHEL 8
- Red Hat JBoss Enterprise Application Platform
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift Container Platform 4
- Red Hat OpenStack Platform 16.1
- Red Hat OpenStack Platform 16.2
- Red Hat Quay 3
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24785
- 2026-10-03 Alias added: GHSA-8hfj-j24r-96c4
References
Patch 2
Advisory 6
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
- https://security.netapp.com/advisory/ntap-20220513-0006/
- FEDORA-2022-85aa8e5706
- FEDORA-2022-35b698150c
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3295-1] node-moment security update
- https://nvd.nist.gov/vuln/detail/CVE-2022-24785
Other 7
- https://github.com/moment/moment
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5
- https://security.netapp.com/advisory/ntap-20220513-0006
- https://security.netapp.com/advisory/ntap-20241108-0002
More Moment vulnerabilities
- TI-2022-13173 Inefficient Regular Expression Complexity in moment CVSS 3.1HIGH 7.5
- TI-2016-03445 The duration function in the moment package before 2.11.2 for Node.js allows remote… CVSS 3.1MEDIUM 6.5
- TI-2017-13399 The moment module before 2.19.3 for Node.js is prone to a regular expression denial of… CVSS 3.1HIGH 7.5
Sources
- CVE-2022-24785 · CVE Program
- CVE-2022-24785 · NVD
- FIRST EPSS
- GHSA-8hfj-j24r-96c4 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-24785 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences