CVE-2025-22150: Undici Uses Insufficiently Random Values
Vulnerability summary
CVE-2025-22150 is a medium (CVSS 6.8) Use of Insufficiently Random Values vulnerability in nodejs undici. EPSS estimates a 0.76% chance of exploitation in the next 30 days, higher than 55.4% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 18 · Related 13Timeline
- 21-01-2025PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · NpmEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- NVDNIST6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.76%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.76% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- nodejs< 22.13.1-r0
Chainguard1 product
- jitsucom-jitsu< 2.8.6-r1
Debian1 product
- node-undiciAll versions (No fix recorded) | < 7.3.0+dfsg1+~cs24.12.11-1
Nodejs1 product
- undici≥ 4.5.0, < 5.28.5 | ≥ 6.0.0, < 6.21.1 | ≥ 7.0.0, < 7.2.3
Npm1 product
- undici≥ 4.5.0, < 5.28.5 | ≥ 6.0.0, < 6.21.1 | ≥ 7.0.0, < 7.2.3
Ubuntu1 product
- node-undiciAll versions (No fix recorded)
Wolfi1 product
- jitsucom-jitsu< 2.8.6-r1
7 vendors · 7 products
References
14 links- github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975X Refsource CONFIRMREPORTAdvisoryWEB
- github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0X Refsource MISCREPORTFIXWEB
- github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934aX Refsource MISCREPORTFIXWEB
- github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385X Refsource MISCREPORTFIXWEB
- blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7fX Refsource MISCREPORTARTICLEWEB
- github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.jsX Refsource MISCREPORTWEB
Show all 14 references
- github.com/nodejs/undiciPACKAGE