cve.bz

CVE-2022-24785

7.5 highEPSS 14%

High (7.5). EPSS 14% chance of exploitation in the next 30 days. Fixed in moment 2.29.2.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
14% chance of exploitation in the next 30 days; higher than 96% of CVEs (scores of 2026-10-31)
CWEs
CWE-22, CWE-27
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8hfj-j24r-96c4npmmoment<2.29.22.29.2
GHSA-8hfj-j24r-96c4NuGetMoment.js<2.29.22.29.2

References

Check your stackJSON