CISA list

● npm package

moment

Moment has five security advisories. The newest release any of them names as the fix is 2.31.0.

As of , moment has five security advisories. The newest release any of them names as the fix is 2.31.0.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 2.31.02.31.05 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-17495GHSA-4p3w-j4w9-5jqwmoment vulnerable to Path Traversal via crafted non-string locale nameModerate severityFrom 2.29.2 before 2.31.02.31.0
CVE-2022-31129GHSA-wc69-rhjr-hc9gMoment.js vulnerable to Inefficient Regular Expression ComplexityHigh severityFrom 2.18.0 before 2.29.42.29.4
CVE-2022-24785GHSA-8hfj-j24r-96c4Path Traversal: 'dir/../../filename' in moment.localeHigh severityBefore 2.29.22.29.2
CVE-2017-18214GHSA-446m-mv8f-q348Regular Expression Denial of Service in momentHigh severityBefore 2.19.32.19.3
CVE-2016-4055GHSA-87vv-r9j6-g5qvRegular Expression Denial of Service in momentModerate severityBefore 2.11.22.11.2

Other npm packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0