{"id":"CVE-2026-17495","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-17495","generatedAt":"2026-10-28T04:34:08.973Z","title":"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.","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().","published":"2026-09-15T06:16:58.000Z","lastModified":"2026-09-16T19:40:00.000Z","status":"Awaiting Analysis","sourceIdentifier":"ce714d77-add3-4f53-aff5-83d477b104bb","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},"cwe":["CWE-27"],"affected":[],"epss":{"score":0.00519,"percentile":0.43943,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.52%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://cna.openjsf.org/security-advisories.html","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"url":"https://github.com/moment/moment/security/advisories/GHSA-4p3w-j4w9-5jqw","source":"ce714d77-add3-4f53-aff5-83d477b104bb"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-17495","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}