# CVE-2022-25883: semver vulnerable to Regular Expression Denial of Service

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.76%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-06-21T05:00:03.352Z
- Modified: 2026-09-10T03:50:02.224Z
- Also known as: GHSA-c2qf-rxjj-qqgw
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- semver: before 7.5.2
- semver (npm): from 7.0.0 before 7.5.2; from 6.0.0 before 6.3.1; from 2.0.0-alpha before 5.7.2
- npmjs semver: before 5.7.2; from 6.0.0 before 6.3.1; from 7.0.0 before 7.5.3

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795> (exploit, patch, third-party-advisory, web)
- <https://github.com/npm/node-semver/blob/main/internal/re.js%23L160> (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/classes/range.js%23L97-L104> (broken-link, web)
- <https://github.com/npm/node-semver/pull/564> (patch, third-party-advisory, web)
- <https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20241025-0004/> (third-party-advisory)
- <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)
- <https://security.netapp.com/advisory/ntap-20241025-0004> (web)

## Sources

- CVE List: [CVE-2022-25883](https://www.cve.org/CVERecord?id=CVE-2022-25883), CVE Terms of Use, modified 2024-12-06
- GitHub Advisory Database: [GHSA-c2qf-rxjj-qqgw](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-25883](https://nvd.nist.gov/vuln/detail/CVE-2022-25883), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25883 · Whole record: https://cve.day/CVE-2022-25883.json · Rebuilt by cve.day 2026-11-25T22:58:19.444Z
