CVE-2021-43307
5.9medium
Exponential ReDoS in semver-regex
- Severity
- 5.9medium CVSS:3.1 by JFROG
- Exploit likelihood
- 1.56% (higher than 75% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- JFROG
- Also known as
- GHSA-4x5v-gmq8-25ch
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
| Product or package | Versions | Reported by |
|---|---|---|
| semver-regex semver-regex | from unspecified before 3.1.4 | CVE List |
| semver-regex (npm) | before 3.1.4, from 4.0.0 before 4.0.3 | GitHub Advisory Database |
| semver-regex_project semver-regex | before 3.1.4, from 4.0.0 before 4.0.3 | NVD |
All scores
| JFROG | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | low rating | |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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
NVD (es)
Una ReDoS exponencial (Denegación de Servicio por Expresión Regular) puede ser desencadenada en el paquete npm semver-regex, cuando un atacante es capaz de suministrar una entrada arbitraria al método test()
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-43307 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4x5v-gmq8-25ch changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-43307 changed 2026-06-17 | Public domain |