CVE-2026-17495
MEDIUMDescription
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().
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 29% of all known CVEs.
References
Related Vulnerabilities
Other CWE-27 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-23897 | Critical | 9.8 | 100% | KEV + Ransom | Fix |
| CVE-2024-24809 | High | 8.5 | 54% | - | - |
| CVE-2023-34125 | Medium | 6.5 | 25% | - | Fix |
| CVE-2022-24785 | High | 7.5 | 14% | - | Fix |
| CVE-2023-50254 | Critical | 9.3 | 2.1% | - | Fix |
| CVE-2021-35027 | High | 7.5 | 2.0% | - | - |
Common questions
How do I fix CVE-2026-17495?
Upgrade node-moment on debian unstable to 2.31.0+ds1-1 or later.
Is CVE-2026-17495 being actively exploited?
Not that we know of. CVE-2026-17495 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.36% is the estimated probability that it will be exploited in the next 30 days. That is higher than 29% of all scored CVEs.
How severe is CVE-2026-17495?
CVE-2026-17495 has a CVSS v3 base score of 5.9, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-17495 affect?
Published advisories record a fix for node-moment (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2026-17495
Markdown
[](https://tridentstack.com/cve/CVE-2026-17495)HTML
<a href="https://tridentstack.com/cve/CVE-2026-17495"><img src="https://tridentstack.com/cve/badge/CVE-2026-17495.svg" alt="CVE-2026-17495"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-16.