CVE-2021-3795
HIGH 7.5CVSS 3.1semver-regex Regular Expression Denial of Service (ReDOS)
semver-regex is vulnerable to Inefficient Regular Expression Complexity
- Published
- 15 Sep 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-44c6-4v22-4mhx
- Sources
- NVDJSONOSV GHSA-44c6-4v22-4mhxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | semver-regex_project | semver-regexcpe:2.3:a:semver-regex_project:semver-regex:*:*:*:*:*:*:*:* |
< 3.1.3 | 3.1.3 |
| NVD | semver-regex_project | semver-regexcpe:2.3:a:semver-regex_project:semver-regex:4.0.0:*:*:*:*:*:*:* |
= 4.0.0 | |
| OSV | npm | semver-regex | < 3.1.3 | 3.1.3 |
| OSV | npm | semver-regex | >= 4.0.0, < 4.0.1 | 4.0.1 |
References
- https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3795 · ADVISORY
- https://github.com/sindresorhus/semver-regex · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Sep 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Sep 2021)