CVEvulnerability
CVE-2022-25883
7.5 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2023-06-21
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
Description
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.
Affected configurations
• npmjs semver (< 5.7.2)
• npmjs semver (>= 6.0.0 < 6.3.1)
• npmjs semver (>= 7.0.0 < 7.5.3)
Related
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104 Broken Link
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L138 Broken Link
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L160 Broken Link
- https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 Patch, Third Party Advisory
- https://github.com/npm/node-semver/pull/564 Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 Exploit, Patch, Third Party Advisory
- https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104 Broken Link
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L138 Broken Link
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L160 Broken Link
- https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 Patch, Third Party Advisory
- https://github.com/npm/node-semver/pull/564 Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20241025-0004/ Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 Exploit, Patch, Third Party Advisory