Vulnerability · Published Jun 1, 2022 · Assigned by JFROG
CVE-2021-43307Exponential ReDoS in semver-regex
Medium 5.9
In plain English
A medium-severity regular-expression denial of service in semver-regex from semver-regex. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.6%top 24.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | semver-regex | 3.1.4 | GHSA-4x5v-gmq8-25ch |
| npm | semver-regex | 4.0.3 | GHSA-4x5v-gmq8-25ch |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| semver-regex | semver-regex | unspecified – before 3.1.4 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H