npm package

moment vulnerabilities by version

The latest release, 2.31.0 (Sep 15, 2026), has no known vulnerabilities. 74% of last week’s 40.8M downloads went to versions with known vulnerabilities. OSV.dev lists 5 advisories for moment; the newest was published on Sep 29, 2026.

npm (opens in a new tab) describes it as “Parse, validate, manipulate, and display dates”

Latest release
2.31.0
Sep 15, 2026, no known vulnerabilities
Downloads last week
40.8M
All versions, from npm
Advisories on OSV.dev
5
Newest Sep 29, 2026
Licence
MIT
OpenSSF Scorecard
6.1/10
moment/moment (opens in a new tab)

Most-downloaded versions last week

From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.

VersionKnown vulnerabilitiesDownloads
2.30.1Dec 27, 20231 known vulnerability, worst rated warning22.5M
2.31.0latestSep 15, 2026No known vulnerabilities10.4M
2.29.4Jul 6, 20221 known vulnerability, worst rated warning4.4M
2.29.1Oct 6, 20202 known vulnerabilities, worst rated critical804.3K
2.24.0Jan 21, 20192 known vulnerabilities, worst rated critical720.9K
2.21.0Mar 2, 20182 known vulnerabilities, worst rated critical524.3K
2.29.3Apr 17, 20222 known vulnerabilities, worst rated critical239.9K
2.22.2Jun 1, 20182 known vulnerabilities, worst rated critical185K

Who is still on a vulnerable moment

74% of last week’s 40.8M moment downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Release lines

The newest release of each major line, from the registry. moment doesn’t publish support dates we can check.

LineNewest releaseReleased
22.31.0Sep 15, 2026
11.7.2Oct 2, 2012

Newest advisories

The 5 most recently published, with the versions each one affects.

  1. WarningCVE-2026-17495 on OSV.dev (opens in a new tab)GHSA-4p3w-j4w9-5jqw

    moment vulnerable to Path Traversal via crafted non-string locale name

    Affects >= 2.29.2, < 2.31.0. Published Sep 29, 2026.

  2. CriticalCVE-2022-31129 on OSV.dev (opens in a new tab)GHSA-wc69-rhjr-hc9g

    Moment.js vulnerable to Inefficient Regular Expression Complexity

    Affects >= 2.18.0, < 2.29.4. Published Jul 6, 2022.

  3. CriticalCVE-2022-24785 on OSV.dev (opens in a new tab)GHSA-8hfj-j24r-96c4

    Path Traversal: 'dir/../../filename' in moment.locale

    Affects < 2.29.2. Published Apr 4, 2022.

  4. CriticalCVE-2017-18214 on OSV.dev (opens in a new tab)GHSA-446m-mv8f-q348

    Regular Expression Denial of Service in moment

    Affects < 2.19.3. Published Mar 5, 2018.

  5. WarningCVE-2016-4055 on OSV.dev (opens in a new tab)GHSA-87vv-r9j6-g5qv

    Regular Expression Denial of Service in moment

    Affects < 2.11.2. Published Oct 24, 2017.

Which moment do you have?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism reads every OSV.dev advisory for moment, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against OSV.dev, CISA KEV, npm and deps.dev.