Path traversal in Moment - CVE-2026-17495

 

Path traversal in Moment - CVE-2026-17495

Published: September 16, 2026


Vulnerability identifier: #VU150114
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-17495
CWE-ID: CWE-27
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to load a file from an attacker-controlled path.

The vulnerability exists due to path traversal in the moment.locale() function when processing a non-string, attacker-influenced locale name. A remote attacker can pass a specially crafted object to moment.locale() to load a file from an attacker-controlled path.

Only server-side npm users are affected; plain string locale names are not affected.


Affected software

Moment

How to mitigate CVE-2026-17495

Install security update from vendor's website.

Moment - update to 2.31.0

External References

Related Security Bulletins