← Back

CVE-2022-24785

nvd nist
Published: Apr 4, 2022Modified: Jun 17, 2026

JSON object

Loading...
7.5
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Exploitability: 3.9 / Impact: 3.6
Source: NVD

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.

Affected (7)

Products: Momentjs: Moment · Tenable: Tenable.sc · Fedoraproject: Fedora · +2 more
Show all products
1 product
Moment
1 product
Tenable.sc
1 product
Fedora
1 product
Active Iq
1 product
Debian Linux
Configuration A
2 vulnerable
Vulnerable SoftwareAffected Versions
Momentjs
From 1.0.1 to 2.29.2
From 1.0.1 to 2.29.2
Configuration B
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 5.21.0
Configuration C
3 vulnerable
Vulnerable SoftwareAffected Versions
Fedoraproject
Version 35
Version 36
All versions
Configuration D
1 vulnerable
Vulnerable SoftwareAffected Versions
Version 10.0

References (15)

Source: security-advisories@github.com
Vendor Advisory
Source: security-advisories@github.com
Mailing ListThird Party Advisory
Source: security-advisories@github.com
Third Party Advisory
Source: security-advisories@github.com
PatchRelease NotesThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Source: af854a3a-2127-422b-91ae-364da2661108
PatchRelease NotesThird Party Advisory

Timeline

No history available yet.