CVE-2022-24785

7.5 HIGH
Published: April 04, 2022 Modified: November 03, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
Source: security-advisories@github.com
Vendor Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html
Source: security-advisories@github.com
Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20220513-0006/
Source: security-advisories@github.com
Third Party Advisory
https://www.tenable.com/security/tns-2022-09
Source: security-advisories@github.com
Patch Release Notes Third Party Advisory
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20220513-0006/
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://security.netapp.com/advisory/ntap-20241108-0002/
Source: af854a3a-2127-422b-91ae-364da2661108
https://www.tenable.com/security/tns-2022-09
Source: af854a3a-2127-422b-91ae-364da2661108
Patch Release Notes Third Party Advisory

15 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.5 / 10.0
EPSS (Exploit Probability)
0.8%
74th percentile
Exploitation Status
Not in CISA KEV

Affected Vendors

tenable fedoraproject netapp debian momentjs