HighGHSA-446m-mv8f-q348CVE-2017-18214

Regular Expression Denial of Service in moment

Published 5 Mar 2018 · Updated 8 Nov 2023

Is your project on an affected moment?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.19.3
Fixed in
2.19.3
Update to the fixed version for your release line, for example:npm install moment@2.19.3

Details

Affected versions of moment are vulnerable to a low severity regular expression denial of service when parsing dates as strings.

Recommendation

Update to version 2.19.3 or later.

Is GHSA-446m-mv8f-q348 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected moment, and gives you the command that fixes it.

More advisories for moment

  • MediumCVE-2026-17495moment vulnerable to Path Traversal via crafted non-string locale name · 29 Sept 2026
  • HighCVE-2022-31129Moment.js vulnerable to Inefficient Regular Expression Complexity · 6 Jul 2022
  • HighCVE-2022-24785Path Traversal: 'dir/../../filename' in moment.locale · 4 Apr 2022
  • MediumCVE-2016-4055Regular Expression Denial of Service in moment · 24 Oct 2017
moment security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.