# semver vulnerable to Regular Expression Denial of Service

Advisory record · `GHSA-c2qf-rxjj-qqgw`

- **Identifiers:** `GHSA-c2qf-rxjj-qqgw` · `CVE-2022-25883`
- **State:** Confirmed
- **Severity:** CVSS 5.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 21 Jun 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Jun 2023, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `semver` (npm): affected `>=7.0.0, <7.5.2 || >=6.0.0, <6.3.1 || >=2.0.0-alpha, <5.7.2`; fixed in `7.5.2`, `6.3.1`, `5.7.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P`, from CNA (snyk)

- **CISA KEV:** Not listed.
- **EPSS:** 0.028, the 86th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 21 Jun 2023. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-c2qf-rxjj-qqgw](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)
- [OSV: GHSA-c2qf-rxjj-qqgw](https://osv.dev/vulnerability/GHSA-c2qf-rxjj-qqgw)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25883>
- <https://github.com/npm/node-semver/pull/564>
- <https://github.com/npm/node-semver/pull/585>
- <https://github.com/npm/node-semver/pull/593>
- <https://github.com/npm/node-semver/commit/2f8fd41487acf380194579ecb6f8b1bbfe116be0>
- <https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441>
- <https://github.com/npm/node-semver/commit/928e56d21150da0413a3333a3148b20e741a920c>
- <https://github.com/npm/node-semver>
- <https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104>
- <https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104>
- <https://github.com/npm/node-semver/blob/main/internal/re.js#L138>
- <https://github.com/npm/node-semver/blob/main/internal/re.js#L160>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-c2qf-rxjj-qqgw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c2qf-rxjj-qqgw/>. Everything for agents: <https://agentprime.io/llms.txt>.
