Vulnerability in Npmjs Semver
CVE-2022-25883
Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.028, 86.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Npmjs Semver
- Semver — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 13 other repositories (app-sre/acs-cve-prom-exporter, bottledlactose/dungoid, bottledlactose/isditeengrap.nl, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 (Exploit, Patch, Third Party Advisory)
- github.com/npm/node-semver/blob/main/internal/re.js#L160 (Broken Link)
- github.com/npm/node-semver/blob/main/internal/re.js#L138 (Broken Link)
- github.com/npm/node-semver/blob/main/classes/range.js#L97-L104 (Broken Link)
- github.com/npm/node-semver/pull/564 (Patch, Third Party Advisory)
- github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20241025-0004/ (Third Party Advisory)