Is Moment.js 1.6 vulnerable?
NuGet · 3 releases from 1.6.0 to 1.6.2 · latest Moment.js is 2.30.1 · checked 18 Nov 2026
Yes: 1 known advisory
Yes. Moment.js 1.6.2, the last 1.6 release, is affected by 1 known security advisory (1 high), including CVE-2022-24785. Upgrade to 2.29.2 or later to fix all of them.
dotnet add package Moment.js --version 2.29.2Is 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
Advisories affecting Moment.js 1.6.2
Path Traversal: 'dir/../../filename' in moment.locale
- Affected
- <2.29.2
- Fixed in
- 2.29.2
Every Moment.js 1.6.x release
Affected: 1.6.0 to 1.6.2. Latest Moment.js: 2.30.1.
| Version | Known advisories |
|---|---|
| Moment.js 1.6.2 | CVE-2022-24785 |
| Moment.js 1.6.1 | CVE-2022-24785 |
| Moment.js 1.6.0 | CVE-2022-24785 |
Which of your client projects are still on Moment.js 1.6?
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.