# Use of Insufficiently Random Values in undici

Advisory record · `GHSA-c76h-2ccp-4975`

- **Identifiers:** `GHSA-c76h-2ccp-4975` · `CVE-2025-22150`
- **State:** Confirmed
- **Severity:** CVSS 6.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-330](https://cwe.mitre.org/data/definitions/330.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 21 Jan 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Jan 2025, 21:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `undici` (npm): affected `>=4.5.0, <5.28.5 || >=6.0.0, <6.21.1 || >=7.0.0, <7.2.3`; fixed in `5.28.5`, `6.21.1`, `7.2.3`

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

- 6.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`, from CNA (GitHub_M)

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

## Timeline

- 21 Jan 2025, 16:55 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975)

## Sources

- [GitHub Advisory Database: GHSA-c76h-2ccp-4975](https://github.com/advisories/GHSA-c76h-2ccp-4975)
- [OSV: GHSA-c76h-2ccp-4975](https://osv.dev/vulnerability/GHSA-c76h-2ccp-4975)
- <https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22150>
- <https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0>
- <https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a>
- <https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385>
- <https://hackerone.com/reports/2913312>
- <https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f>
- <https://github.com/nodejs/undici>
- <https://github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113>

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-c76h-2ccp-4975>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c76h-2ccp-4975/>. Everything for agents: <https://agentprime.io/llms.txt>.
