Loading advisory.
Loading advisory.
Path Traversal: 'dir/../../filename' in moment.locale
This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.
Published 2022-04-04 00:00 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| moment | npm | < 2.29.2 | 2.29.2 | npm install moment@2.29.2 |
| Moment.js | NuGet | < 2.29.2 versions 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 2.0.0, 2.1.0, 2.10.0, 2.10.1, 2.10.2, 2.10.3, 2.10.5, 2.10.6, 2.11.0 and 52 more | 2.29.2 | dotnet add package Moment.js --version 2.29.2 |
This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.
This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive).
Sanitize user-provided locale name before passing it to moment.js.
Are there any links users can visit to find out more?
If you have any questions or comments about this advisory:
Open an issue in moment repo
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.053 on 2026-11-24 to 0.027 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.053 | first score | v2026.06.15 |
| 2026-11-26 | 0.027 | 0.053 | v2026.06.15 |