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.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub_MCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 63%
VendorProductVersion
momentjsmoment
1.0.1 ≤
𝑥
< 2.29.2
momentjsmoment
1.0.1 ≤
𝑥
< 2.29.2
tenabletenable.sc
𝑥
< 5.21.0
netappactive_iq
-
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-moment
bullseye
2.29.1+ds-2+deb11u2
fixed
sid
2.29.4+ds-1
fixed
trixie
2.29.4+ds-1
fixed
bookworm
2.29.4+ds-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
nikola
xenial
needed
trusty
ignored
node-moment
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
Fixed 2.29.1+ds-3ubuntu0.2
released
impish
ignored
focal
Fixed 2.24.0+ds-2ubuntu0.1
released
bionic
Fixed 2.20.1+ds-1ubuntu0.1
released
xenial
needed
trusty
ignored