CVSS v3
7.5
HIGH
EPSS Score
1.7 %
exploit probability
CISA KEV
No
known exploited
Exploitation
—
SSVC status
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?
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.
Is CVE-2022-24785 actively exploited?
Active exploitation of CVE-2022-24785 has not been confirmed. The EPSS score is 1.7%, indicating the estimated probability of exploitation in the next 30 days.
What is the CVSS score for CVE-2022-24785?
CVE-2022-24785 has a CVSS v3 base score of 7.5 (HIGH severity).
Is CVE-2022-24785 affecting your environment?
Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.
No credit card required · 500 free checks/month · Free API key
Other 2022 vulnerabilities worth triaging
Ranked by exploit probability (EPSS).