Is Moment.js 2.29 vulnerable?
NuGet · 5 releases from 2.29.0 to 2.29.4 · latest Moment.js is 2.30.1 · checked 18 Nov 2026
No known advisories in the last release
Moment.js 2.29.4, the last 2.29 release, has no known advisories. 2 advisories affect earlier 2.29.x releases, so update to 2.29.4.
dotnet add package Moment.js --version 2.29.4Is your project on an affected Moment.js?
Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Fixed within 2.29.x, affecting earlier releases
Moment.js vulnerable to Inefficient Regular Expression Complexity
- Affected
- >=2.18.0 <2.29.4
- Fixed in
- 2.29.4
Path Traversal: 'dir/../../filename' in moment.locale
- Affected
- <2.29.2
- Fixed in
- 2.29.2
Every Moment.js 2.29.x release
Affected: 2.29.0 to 2.29.3. 2.29.4 is not affected. Latest Moment.js: 2.30.1.
| Version | Known advisories |
|---|---|
| Moment.js 2.29.4 | None |
| Moment.js 2.29.3 | CVE-2022-31129 |
| Moment.js 2.29.2 | CVE-2022-31129 |
| Moment.js 2.29.1 | CVE-2022-31129, CVE-2022-24785 |
| Moment.js 2.29.0 | CVE-2022-31129, CVE-2022-24785 |
Which of your client projects are still on Moment.js 2.29?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact Moment.js version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other Moment.js versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the NuGet registry. Refreshed daily.