Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2022-24785 Details

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 CVEPatch
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 CVEVendor Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html CVEMailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ CVE
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ CVE

see all 15 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')[email protected]
CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')[email protected]
CWE-27Path Traversal: 'dir/../../filename'[email protected]

Affected Products

ProductVersions
momentjs moment
>= 1.0.1, < 2.29.2

CPE

  • cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:*
  • cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:*

Remediation

  • No remediation found in references.
tenable tenable.sc
< 5.21.0

CPE

  • cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
netapp active iq
All versions

CPE

  • cpe:2.3:a:netapp:active_iq:-:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
35
36

CPE

  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
10.0

CPE

  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

13 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-24785
NVD Published Date:
Apr 4, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-24785 Details - Not Deferred