CVE-2022-24785
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.
Published:Apr 4, 2022
Last Modified:Nov 3, 2025
EPS:Apr 4, 2022
EPSS Score:0.00694
CVSS Score:7.5
Affected Products
Vendor
Product
Action
Vendor
Debian
Product
Debian Linux
Debian
Debian Linux
Vendor
Fedoraproject
Product
Fedora
Fedoraproject
Fedora
Vendor
Momentjs
Product
Moment
Momentjs
Moment
Vendor
Netapp
Product
Active Iq
Netapp
Active Iq
Vendor
Redhat
Product
Acm
Redhat
Acm
Vendor
Redhat
Product
Ceph Storage
Redhat
Ceph Storage
Vendor
Redhat
Product
Jboss Enterprise Application Platform
Redhat
Jboss Enterprise Application Platform
Vendor
Redhat
Product
Jboss Enterprise Application Platform Eus
Redhat
Jboss Enterprise Application Platform Eus
Vendor
Redhat
Product
Jboss Enterprise Bpms Platform
Redhat
Jboss Enterprise Bpms Platform
Vendor
Redhat
Product
Jboss Fuse
Redhat
Jboss Fuse
Vendor
Redhat
Product
Openshift Data Foundation
Redhat
Openshift Data Foundation
Vendor
Redhat
Product
Openshift Distributed Tracing
Redhat
Openshift Distributed Tracing
Vendor
Redhat
Product
Red Hat Single Sign On
Redhat
Red Hat Single Sign On
Vendor
Redhat
Product
Rhosemc
Redhat
Rhosemc
Vendor
Redhat
Product
Service Mesh
Redhat
Service Mesh
Vendor
Tenable
Product
Tenable.sc
Tenable
Tenable.sc
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
