CVE-2026-17495: moment Path Traversal: 'dir/../../filename'
Vulnerability summary
CVE-2026-17495 is a medium (CVSS 5.9) Path Traversal: 'dir/../../filename' vulnerability in moment. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 27.9% of scored vulnerabilities.
Timeline
- 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.36%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
0.00 pp
From 0.36% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard39 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 · 54 products
References
11 links- github.com/moment/momentPACKAGE