Vulnerability · Published Sep 15, 2021 · Assigned by @huntrdev
CVE-2021-3795Inefficient Regular Expression Complexity in sindresorhus/semver-regex
High 7.5
In plain English
A high-severity regular-expression denial of service in sindresorhus/semver-regex from sindresorhus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.5High
Exploit odds (30 days)1.5%top 25.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
semver-regex is vulnerable to Inefficient Regular Expression Complexity
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | semver-regex | 3.1.3 | GHSA-44c6-4v22-4mhx |
| npm | semver-regex | 4.0.1 | GHSA-44c6-4v22-4mhx |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sindresorhus | sindresorhus/semver-regex | unspecified – before 4.0.1unspecified – before 3.1.3 |
Weakness: CWE-1333 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H