Description
This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.
Recommendation
Update the moment package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.29.2
- Patched version(s): 2.29.2
References
Could your website be exposed too?
SmartScanner can check your website for Path Traversal: 'dir/../../filename' in moment.locale and gives you actionable findings to investigate.
Start a free scanRelated Issues
- moment vulnerable to Path Traversal via crafted non-string locale name - CVE-2026-17495
- JSZip contains Path Traversal via loadAsync - CVE-2022-48285
- electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling - CVE-2026-49253
- Path traversal vulnerability in gatsby-plugin-sharp - CVE-2023-30548
You might also like:
See something that needs correcting? Let us knowUpdated November 04, 2025


