HighGHSA-44c6-4v22-4mhxCVE-2021-3795

semver-regex Regular Expression Denial of Service (ReDOS)

Published 20 Sept 2021 · Updated 10 Sept 2026

Is your project on an affected semver-regex?

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 packages

Affected
<3.1.3
Fixed in
3.1.3
Update to the fixed version for your release line, for example:npm install semver-regex@3.1.3
Affected
>=4.0.0 <4.0.1
Fixed in
4.0.1
Update to the fixed version for your release line, for example:npm install semver-regex@4.0.1

Details

npm semver-regex is vulnerable to Inefficient Regular Expression Complexity

Is GHSA-44c6-4v22-4mhx 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 semver-regex, and gives you the command that fixes it.

More advisories for semver-regex

  • LowCVE-2021-43307Regular expression denial of service in semver-regex · 3 Jun 2022
semver-regex security overview

References

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