Path traversal in Moment - CVE-2026-17495
Published: September 16, 2026
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.