npm package

moment 1.1.0 vulnerabilities, and the version that fixes all of them

moment 1.1.0 has 3 known vulnerabilities (2 rated high or critical); 2.29.2 fixes all of them. 2.29.2 has 2 known vulnerabilities of its own, so upgrade to 2.31.0, which has none.

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

Known vulnerabilities
3
2 rated high or critical
Released
Oct 27, 2011
Latest is 2.31.0
Downloads last week
1.3K
Under 1% of moment downloads
Licence
MIT
Dependencies
None
Resolved by deps.dev

What to upgrade to

2.31.0 is the closest release with no known vulnerabilities that we checked.

  • 1.7.2

    Newest 1.x release. Released Oct 2, 2012.

    3 known vulnerabilities, worst rated warning
  • 2.29.2

    Fixes all 3 known vulnerabilities. Released Apr 3, 2022.

    2 known vulnerabilities, worst rated warning
  • 2.31.0Upgrade to this

    Latest release. Released Sep 15, 2026.

    No known vulnerabilities

2.31.0 came out on Sep 15, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for moment 1.1.0

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2022-24785 on OSV.dev (opens in a new tab)GHSA-8hfj-j24r-96c4EPSS: top 4%

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

    Fixed in 2.29.2. Published Apr 4, 2022.

  2. WarningCVE-2016-4055 on OSV.dev (opens in a new tab)GHSA-87vv-r9j6-g5qvEPSS: top 5%

    Regular Expression Denial of Service in moment

    Fixed in 2.11.2. Published Oct 24, 2017.

  3. CriticalCVE-2017-18214 on OSV.dev (opens in a new tab)GHSA-446m-mv8f-q348EPSS: top 11%

    Regular Expression Denial of Service in moment

    Fixed in 2.19.3. Published Mar 5, 2018.

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.

Is moment the only one?

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

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly moment 1.1.0, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

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