VDB

CVE-2022-24785

CVE-2022-24785 PUBLISHED CVSS 7.5 HIGH

Path Traversal in Moment.js

Reported by github_m · Published April 4, 2022

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.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
momentmoment>= 1.0.1, < 2.29.2
momentmoment1.0.1
chainguardwazuh-dashboard0
momentjsmoment
chainguardwazuh-dashboard-fips0
npmmoment0
NuGetMoment.js0

Timeline

  • Apr 4, 2022 CVE Published
  • Apr 5, 2022 EPSS Score (30 in total, the first dated here)
  • May 29, 2023 VulnCheck XDB Entry
  • Feb 8, 2024 PoC Published
  • Jul 25, 2024 VulnCheck KEV Exploitation
  • Mar 9, 2026 Security Advisory (46 in total, the first dated here)
  • Jul 2, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (44 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-24785
vulnetix vdb fixes CVE-2022-24785

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24785/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›