Home / nodejs / undici / CVE-2025-22150
CVE-2025-22150: is it exploited, and which versions of nodejs undici are affected and fixed?
CVE-2025-22150 is a weak randomness vulnerability in nodejs undici. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: undici from 4.5.0 before 5.28.5, undici from 6.0.0 before 6.21.1 and undici from 7.0.0 before 7.2.3 (GitHub advisory GHSA-c76h-2ccp-4975). Fixed in 5.28.5, 6.21.1 and 7.2.3 (GitHub advisory GHSA-c76h-2ccp-4975). Severity: Medium (6.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-22150?
Undici Uses Insufficiently Random Values
Undici is an HTTP/1.1 client. Starting in version 4.5.0 and prior to versions 5.28.5, 6.21.1, and 7.2.3, undici uses `Math.random()` to choose the boundary for a multipart/form-data request. It is known that the output of `Math.random()` can be predicted if several of its generated values are known. If there is a mechanism in an app that sends multipart requests to an attacker-controlled website, they can use this to leak the necessary values. Therefore, an attacker can tamper with the requests going to the backend APIs if certain conditions are met. This is fixed in versions 5.28.5, 6.21.1, and 7.2.3. As a workaround, do not issue multipart requests to attacker controlled servers.
From the CVE record by GitHub_M, last updated February 12, 2025, 20:41 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| nodejs | undici | >= 4.5.0, < 5.28.5 >= 6.0.0, < 6.21.1 >= 7.0.0, < 7.2.3 |
As the CVE record by GitHub_M states it, last updated February 12, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | undici | >= 4.5.0, < 5.28.5 | 5.28.5 | GHSA-c76h-2ccp-4975 |
| npm | undici | >= 6.0.0, < 6.21.1 | 6.21.1 | GHSA-c76h-2ccp-4975 |
| npm | undici | >= 7.0.0, < 7.2.3 | 7.2.3 | GHSA-c76h-2ccp-4975 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 21, 2025. Summary: Use of Insufficiently Random Values in undici.
How severe is CVE-2025-22150?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-22150 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, January 21, 2025)
- EPSS
- 0.78% probability of exploitation activity in the next 30 days, percentile 57.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-330 Use of Insufficiently Random Values
Where are the vendor advisories and references?
- https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975 x_refsource_CONFIRM
- https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0 x_refsource_MISC
- https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a x_refsource_MISC
- https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385 x_refsource_MISC
- https://hackerone.com/reports/2913312 x_refsource_MISC
- https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f x_refsource_MISC
- https://github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 30, 2024
- Published
- January 21, 2025, 17:46 UTC
- CVE record updated
- February 12, 2025, 20:41 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 08:45 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect undici?
- Nov 20, 2026CVE-2026-133487 nodejs undici: prototype pollution
- Jan 14, 2026CVE-2026-22036 nodejs undici: denial of service (resources allocated without limits)
- May 15, 2025CVE-2025-47279 nodejs undici: memory leak
- Jul 8, 2024CVE-2024-38372 nodejs undici: information disclosure in sent data
- Apr 4, 2024CVE-2024-30260 nodejs undici: improper authorization
- Apr 4, 2024CVE-2024-30261 nodejs undici: improper access control
- Feb 16, 2024CVE-2024-24750 nodejs undici: denial of service (uncontrolled resource consumption)
- Feb 16, 2024CVE-2024-24758 nodejs undici: information disclosure
Questions about CVE-2025-22150
Is CVE-2025-22150 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.78% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of nodejs undici are affected by CVE-2025-22150?
undici from 4.5.0 before 5.28.5, undici from 6.0.0 before 6.21.1 and undici from 7.0.0 before 7.2.3, per the GitHub advisory GHSA-c76h-2ccp-4975. The tables above give every range the sources list.
Which version fixes CVE-2025-22150?
5.28.5, 6.21.1 and 7.2.3, per the GitHub advisory GHSA-c76h-2ccp-4975. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-22150?
Medium (6.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-22150?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.