High severity · published Apr 4, 2022
CVE-2022-24785
Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates
7.5
CVSS
13.8%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)13.8% · higher than 97% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AI
Active IQ · Netapp
All versions, or not specified · source: NVD
DL
Debian Linux · Debian
10.0 · source: NVD
FE
Fedora · Fedoraproject
35; 36 · source: NVD
MO
Moment · Momentjs
1.0.1 before 2.29.2; 1.0.1 before 2.29.2 · source: NVD
TE
Tenable.sc · Tenable
before 5.21.0 · source: NVD