CVE-2022-24785
CVSS v3
7.5
HIGH
EPSS Score
13.9 %
exploit probability, as of 2026-10-18
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for moment.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- momentnpmall versions · fixed in 2.29.2
- Moment.jsNuGetall versions · fixed in 2.29.2
Vendor advisories
Moment.js: Path traversal in moment.locale
kiali as a component of OpenShift Service Mesh 2.0 · kiali.src as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana as a component of OpenShift Service Mesh 2.0
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.13 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.10 on RHEL 7 security update
Red Hat Security Advisory: Red Hat Fuse 7.12 release and security update
Red Hat Security Advisory: Red Hat Ceph Storage 6.1 Container security and bug fix update
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7
18 more advisories
Description
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.
Technical details
- Published
- 2022-04-04
Frequently asked questions
What is CVE-2022-24785?
Is CVE-2022-24785 actively exploited?
What is the CVSS score for CVE-2022-24785?
Running moment? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.