CVE-2022-25883
HIGH 7.5CVSS 3.1semver vulnerable to Regular Expression Denial of Service
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.
- Published
- 21 Jun 2023
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-c2qf-rxjj-qqgw
- Sources
- NVDJSONOSV GHSA-c2qf-rxjj-qqgwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | npmjs | semvercpe:2.3:a:npmjs:semver:*:*:*:*:*:node.js:*:* |
< 5.7.2 | 5.7.2 |
| NVD | npmjs | semvercpe:2.3:a:npmjs:semver:*:*:*:*:*:node.js:*:* |
>= 6.0.0, < 6.3.1 | 6.3.1 |
| NVD | npmjs | semvercpe:2.3:a:npmjs:semver:*:*:*:*:*:node.js:*:* |
>= 7.0.0, < 7.5.3 | 7.5.3 |
| OSV | npm | semver | >= 7.0.0, < 7.5.2 | 7.5.2 |
| OSV | npm | semver | >= 6.0.0, < 6.3.1 | 6.3.1 |
| OSV | npm | semver | >= 2.0.0-alpha, < 5.7.2 | 5.7.2 |
References
- https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104 · Broken Link, WEB
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L138 · Broken Link, WEB
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L160 · Broken Link, WEB
- https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 · Patch, Third Party Advisory, WEB
- https://github.com/npm/node-semver/pull/564 · Patch, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 · Exploit, Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20241025-0004/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25883 · ADVISORY
- https://github.com/npm/node-semver/pull/585 · WEB
- https://github.com/npm/node-semver/pull/593 · WEB
- https://github.com/npm/node-semver/commit/2f8fd41487acf380194579ecb6f8b1bbfe116be0 · WEB
- https://github.com/npm/node-semver/commit/928e56d21150da0413a3333a3148b20e741a920c · WEB
- https://github.com/npm/node-semver · PACKAGE
- https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104 · WEB
- https://github.com/npm/node-semver/blob/main/internal/re.js#L138 · WEB
- https://github.com/npm/node-semver/blob/main/internal/re.js#L160 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 21 Jun 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Jun 2023)