CVE-2026-17495: moment vulnerable to Path Traversal via crafted non-string locale name
Vulnerability summary
CVE-2026-17495 is a medium (CVSS 5.9) Path Traversal: 'dir/../../filename' vulnerability in moment. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 41.1% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 15-09-2026PublishedVulnerability first disclosed.
- 15-09-2026Last modifiedVulnerability information updated.
Description
moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. In versions 2.29.2 through 2.30.1, a specially crafted non-string object passed to moment.locale() can bypass the locale-name path-traversal guard. The guard assumes the input is a string, so an object whose match() method satisfies the check while its toString() returns a traversal path reaches an internal require() call with attacker-controlled path segments. This is an incomplete fix for CVE-2022-24785 and primarily affects npm (server-side) users that pass user-provided input directly to moment.locale(). The issue is fixed in moment 2.31.0, and users should upgrade to 2.31.0 or later. As a workaround, validate that any user-supplied input is a string before passing it to moment.locale().
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
Decrease -0.07 pp
From 0.52% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard40 products
- airflow-2All versions (No fix recorded)
- airflow-core-2All versions (No fix recorded)
- arangodb-3.12< 3.12.12.1-r1
- azurite< 3.37.0-r2
- jupyter-base-notebookAll versions (No fix recorded)
Wolfi10 products
- jupyter-base-notebookAll versions (No fix recorded)
- kubeflow-centraldashboard< 2.0.0-r4
- nextcloud-server-33< 33.0.9-r2
- opensearch-dashboards-3< 3.8.0-r11
- opensearch-dashboards-3-security-analytics-dashboards-plugin< 3.8.0-r11
Ubuntu2 products
- node-momentAll versions (No fix recorded)
- python-xstatic-momentAll versions (No fix recorded)
Debian1 product
- node-momentAll versions (No fix recorded) | < 2.31.0+ds1-1
Moment1 product
- moment≥ 2.29.2, < 2.31.0
Npm1 product
- moment≥ 2.29.2, < 2.31.0
6 vendors · 55 products
References
11 links- github.com/moment/momentPACKAGE