CVE-2025-22150 Undici Uses Insufficiently Random Values
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
14 packages: 9 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-undici(Debian 12) | = 5.15.0+dfsg1+~cs20.10.9.3-1; = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1; = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2; = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 +36 more | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/nodejs(Alpine v3.21) | < 22.13.1-r0 | 22.13.1-r0 | Fixed |
| alpine/nodejs(Alpine v3.22) | < 22.13.1-r0 | 22.13.1-r0 | Fixed |
| alpine/nodejs(Alpine v3.23) | < 22.13.1-r0 | 22.13.1-r0 | Fixed |
| alpine/nodejs(Alpine v3.24) | < 22.13.1-r0 | 22.13.1-r0 | Fixed |
| azure linux nodejs(Azure Linux 3.0) | < 20.14.0-5 | 20.14.0-5 | Fixed |
| cbl-mariner nodejs18(CBL-Mariner 2.0) | < 18.20.3-3 | 18.20.3-3 | Fixed |
| debian/node-undici(Debian 13) | < 7.3.0+dfsg1+~cs24.12.11-1 | 7.3.0+dfsg1+~cs24.12.11-1 | Fixed |
| debian/node-undici(Debian 14) | < 7.3.0+dfsg1+~cs24.12.11-1 | 7.3.0+dfsg1+~cs24.12.11-1 | Fixed |
| npm undici(npm) | >= 4.5.0, < 5.28.5; >= 6.0.0, < 6.21.1; >= 7.0.0, < 7.2.3 | 5.28.5, 6.21.1, 7.2.3 | Fixed |
| nodejs undici | = >= 4.5.0, < 5.28.5; = >= 6.0.0, < 6.21.1; = >= 7.0.0, < 7.2.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux nodejs(Azure Linux:3.0) | < 20.14.0-5 | 20.14.0-5 |
| cbl-mariner nodejs18(CBL-Mariner:2.0) | < 18.20.3-3 | 18.20.3-3 |
| npm undici(npm) | >= 4.5.0, < 5.28.5 | 5.28.5 |
| npm undici(npm) | >= 6.0.0, < 6.21.1 | 6.21.1 |
| npm undici(npm) | >= 7.0.0, < 7.2.3 | 7.2.3 |
| debian/node-undici(Debian:12) | All versions | No fix listed |
| debian/node-undici(Debian:12) | = 5.15.0+dfsg1+~cs20.10.9.3-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u2 | No fix listed |
| debian/node-undici(Debian:12) | = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 | No fix listed |
| debian/node-undici(Debian:12) | = 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4 | No fix listed |
| debian/node-undici(Debian:12) | = 5.19.1+dfsg1+~cs20.10.9.5-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.19.1+dfsg1+~cs20.10.9.5-2 | No fix listed |
| debian/node-undici(Debian:12) | = 5.22.1+dfsg1+~cs20.10.10.2-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.26.3+dfsg1+~cs23.10.12-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.26.3+dfsg1+~cs23.10.12-2 | No fix listed |
| debian/node-undici(Debian:12) | = 5.26.3+dfsg1+~cs23.10.12-3 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.0+dfsg1+~cs23.11.12.3-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.0+dfsg1+~cs23.11.12.3-2 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-2 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-3 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-4 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-5 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.2+dfsg1+~cs23.11.12.3-6 | No fix listed |
Show 32 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-undici(Debian:12) | = 5.28.4+dfsg1+~cs23.12.11-1 | No fix listed |
| debian/node-undici(Debian:12) | = 5.28.4+dfsg1+~cs23.12.11-2 | No fix listed |
| debian/node-undici(Debian:12) | = 7.1.0+dfsg1+~cs24.12.10-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.15.0+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.15.0+dfsg+~cs3.2.0-3 | No fix listed |
| debian/node-undici(Debian:12) | = 7.16.0+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.16.0+dfsg+~cs3.2.0-2 | No fix listed |
| debian/node-undici(Debian:12) | = 7.18.2+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.2.3+dfsg1+~cs24.12.11-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.2.3+dfsg1+~cs24.12.11-2 | No fix listed |
| debian/node-undici(Debian:12) | = 7.24.5+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.24.6+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.24.6+dfsg+~cs3.2.0-2 | No fix listed |
| debian/node-undici(Debian:12) | = 7.24.6+dfsg+~cs3.2.0-3 | No fix listed |
| debian/node-undici(Debian:12) | = 7.3.0+dfsg1+~cs24.12.11-1 | No fix listed |
| debian/node-undici(Debian:12) | = 7.3.0+dfsg1+~cs24.12.11-2 | No fix listed |
| debian/node-undici(Debian:12) | = 8.5.0+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:12) | = 8.5.0+dfsg+~cs3.2.0-2 | No fix listed |
| debian/node-undici(Debian:12) | = 8.5.0+dfsg+~cs3.2.0-3 | No fix listed |
| debian/node-undici(Debian:12) | = 8.9.0+dfsg+~cs3.2.0-1 | No fix listed |
| debian/node-undici(Debian:13) | < 7.3.0+dfsg1+~cs24.12.11-1 | 7.3.0+dfsg1+~cs24.12.11-1 |
| debian/node-undici(Debian:14) | < 7.3.0+dfsg1+~cs24.12.11-1 | 7.3.0+dfsg1+~cs24.12.11-1 |
| nodejs undici | = >= 4.5.0, < 5.28.5 | No fix listed |
| nodejs undici | = >= 6.0.0, < 6.21.1 | No fix listed |
| nodejs undici | = >= 7.0.0, < 7.2.3 | No fix listed |
| alpine/nodejs(Alpine:v3.21) | < 22.13.1-r0 | 22.13.1-r0 |
| alpine/nodejs(Alpine:v3.22) | < 22.13.1-r0 | 22.13.1-r0 |
| alpine/nodejs(Alpine:v3.23) | < 22.13.1-r0 | 22.13.1-r0 |
| alpine/nodejs(Alpine:v3.24) | < 22.13.1-r0 | 22.13.1-r0 |
| ubuntu/node-undici(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0 patch
- https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a patch
- https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385 patch
- https://hackerone.com/reports/2913312
- https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f
- https://github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113
- github.com
- Debian Security Tracker CVE-2025-22150 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product