CVE-2021-43307
JSON

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 packageVersionsReported by
semver-regex semver-regexfrom unspecified before 3.1.4CVE List
semver-regex (npm)before 3.1.4, from 4.0.0 before 4.0.3GitHub Advisory Database
semver-regex_project semver-regexbefore 3.1.4, from 4.0.0 before 4.0.3NVD

All scores

JFROG5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHublow rating
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-43307 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-4x5v-gmq8-25ch changed 2026-09-10CC-BY-4.0
NVDCVE-2021-43307 changed 2026-06-17Public domain