Undici Uses Insufficiently Random Values
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 8 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| NodeJS | undici | 4.5.0 to before 5.28.5; 6.0.0 to before 6.21.1; 7.0.0 to before 7.2.3 | 5.28.5, 6.21.1, 7.2.3 | Patch available | CNA |
| — | undici (npm) | 4.5.0 to before 5.28.5 | 5.28.5 | Patch available | GHSA-c76h-2ccp-4975 |
| — | undici (npm) | 6.0.0 to before 6.21.1 | 6.21.1 | Patch available | GHSA-c76h-2ccp-4975 |
| — | undici (npm) | 7.0.0 to before 7.2.3 | 7.2.3 | Patch available | GHSA-c76h-2ccp-4975 |
- undici VendorNodeJS Affected 4.5.0 to before 5.28.5; 6.0.0 to before 6.21.1; 7.0.0 to before 7.2.3 Fixed in 5.28.5, 6.21.1, 7.2.3 Patch available CNA
- undici (npm) Vendor— Affected 4.5.0 to before 5.28.5 Fixed in 5.28.5 Patch available GHSA-c76h-2ccp-4975
- undici (npm) Vendor— Affected 6.0.0 to before 6.21.1 Fixed in 6.21.1 Patch available GHSA-c76h-2ccp-4975
- undici (npm) Vendor— Affected 7.0.0 to before 7.2.3 Fixed in 7.2.3 Patch available GHSA-c76h-2ccp-4975
Remediation
- Fix · CNA undici (nodejs) Fixed in 5.28.5, 6.21.1, 7.2.3
- Fix · GHSA-c76h-2ccp-4975 undici (npm) Fixed in 5.28.5 Advisory →
- Fix · GHSA-c76h-2ccp-4975 undici (npm) Fixed in 6.21.1 Advisory →
- Fix · GHSA-c76h-2ccp-4975 undici (npm) Fixed in 7.2.3 Advisory →
Red Hat 13 advisories
- RHSA-2025:21368 Released 2025-11-13 · Red Hat rating ModerateRed Hat OpenShift Data Foundation 4.18 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.18 registry.redhat.io/odf4/cephcsi-rhel9, registry.redhat.io/odf4/cephcsi-rhel9-operator, registry.redhat.io/odf4/mcg-core-rhel9 +16
- RHSA-2025:17145 Released 2025-10-01 · Red Hat rating ModerateRed Hat OpenShift Data Foundation 4.17 security, enhancement & bug fix update
- Red Hat Openshift Data Foundation 4.17 registry.redhat.io/odf4/cephcsi-rhel9, registry.redhat.io/odf4/cephcsi-rhel9-operator, registry.redhat.io/odf4/mcg-core-rhel9 +16
- RHSA-2025:3397 Released 2025-03-31 · Red Hat rating ImportantRHOAI 2.16.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
Show 10 more Red Hat advisories
- RHSA-2025:3374 Released 2025-03-27 · Red Hat rating ImportantRed Hat Developer Hub 1.5.1 release.
- Red Hat Developer Hub 1.5 registry.redhat.io/rhdh/rhdh-hub-rhel9, registry.redhat.io/rhdh/rhdh-rhel9-operator
- RHSA-2025:3368 Released 2025-03-27 · Red Hat rating ImportantRHOAI 2.16.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
- RHSA-2025:2588 Released 2025-03-10 · Red Hat rating ImportantRHOAI 2.18.0 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.18 registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-mm-rest-proxy-rhel8, registry.redhat.io/rhoai/odh-modelmesh-rhel8 +2
- RHSA-2025:1931 Released 2025-02-27 · Red Hat rating ModerateRed Hat Developer Hub 1.4.2 release.
- Red Hat Developer Hub (RHDH) 1.4 registry.redhat.io/rhdh/rhdh-hub-rhel9
- RHSA-2025:1613 Released 2025-02-17 · Red Hat rating Importantnodejs:22 security update
- Red Hat Enterprise Linux AppStream (v. 9) nodejs-1:22.13.1-1.module+el9.5.0+22763+17233acb.aarch64::nodejs:22, nodejs-1:22.13.1-1.module+el9.5.0+22763+17233acb.ppc64le::nodejs:22, nodejs-1:22.13.1-1.module+el9.5.0+22763+17233acb.s390x::nodejs:22 +28
- RHSA-2025:1611 Released 2025-02-17 · Red Hat rating Importantnodejs:22 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:22.13.1-1.module+el8.10.0+22759+46b58560.aarch64::nodejs:22, nodejs-1:22.13.1-1.module+el8.10.0+22759+46b58560.ppc64le::nodejs:22, nodejs-1:22.13.1-1.module+el8.10.0+22759+46b58560.s390x::nodejs:22 +28
- RHSA-2025:1582 Released 2025-02-17 · Red Hat rating Moderatenodejs:18 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:18.20.6-1.module+el8.10.0+22776+24cd6c55.aarch64::nodejs:18, nodejs-1:18.20.6-1.module+el8.10.0+22776+24cd6c55.ppc64le::nodejs:18, nodejs-1:18.20.6-1.module+el8.10.0+22776+24cd6c55.s390x::nodejs:18 +20
- RHSA-2025:1446 Released 2025-02-13 · Red Hat rating Moderatenodejs:18 security update
- Red Hat Enterprise Linux AppStream (v. 9) nodejs-1:18.20.6-1.module+el9.5.0+22773+9a359385.aarch64::nodejs:18, nodejs-1:18.20.6-1.module+el9.5.0+22773+9a359385.ppc64le::nodejs:18, nodejs-1:18.20.6-1.module+el9.5.0+22773+9a359385.s390x::nodejs:18 +20
- RHSA-2025:1443 Released 2025-02-13 · Red Hat rating Importantnodejs:20 security update
- Red Hat Enterprise Linux AppStream (v. 9) nodejs-1:20.18.2-1.module+el9.5.0+22758+4ad2c198.aarch64::nodejs:20, nodejs-1:20.18.2-1.module+el9.5.0+22758+4ad2c198.ppc64le::nodejs:20, nodejs-1:20.18.2-1.module+el9.5.0+22758+4ad2c198.s390x::nodejs:20 +20
- RHSA-2025:1351 Released 2025-02-12 · Red Hat rating Importantnodejs:20 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:20.18.2-1.module+el8.10.0+22767+a3309b10.aarch64::nodejs:20, nodejs-1:20.18.2-1.module+el8.10.0+22767+a3309b10.ppc64le::nodejs:20, nodejs-1:20.18.2-1.module+el8.10.0+22767+a3309b10.s390x::nodejs:20 +20
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix yet |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat Developer Hub (RHDH) 1.4 | Fixed | RHSA-2025:1931 |
| Red Hat Developer Hub 1.5 | Fixed | RHSA-2025:3374 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2025:1351, RHSA-2025:1582, RHSA-2025:1611 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:1443, RHSA-2025:1446, RHSA-2025:1613 |
| Red Hat OpenShift AI 2.16 | Fixed | RHSA-2025:3368 |
| Red Hat OpenShift AI 2.18 | Fixed | RHSA-2025:2588 |
| Red Hat Openshift Data Foundation 4.17 | Fixed | RHSA-2025:17145 |
| Red Hat Openshift Data Foundation 4.18 | Fixed | RHSA-2025:21368 |
Not affected: 10 products
- Red Hat Developer Hub (RHDH) 1.4
- Red Hat Developer Hub 1.5
- Red Hat Enterprise Linux 10
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 2.16
- Red Hat OpenShift AI 2.18
- Red Hat Openshift Data Foundation 4.17
- Red Hat Openshift Data Foundation 4.18
Timeline
- 2026-10-02 Threatist record created from CVE-2025-22150
- 2026-10-03 Alias added: GHSA-c76h-2ccp-4975
References
Other 8
- https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975
- 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/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113
- https://github.com/nodejs/undici
More NodeJS vulnerabilities
- TI-2026-79288 Out-of-bounds write in Google Brotli decoder KEVCVSS 4.0CRITICAL 9.2
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2024-18584 Race condition in NodeJS Node CVSS 3.0HIGH 8.2
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2024-03325 Command injection vulnerability in programing languages on Microsoft Windows operating system. CVSS 3.1CRITICAL 9.8
- TI-2022-03472 X.509 Email Address Variable Length Buffer Overflow CVSS 3.1HIGH 7.5
Sources
- CVE-2025-22150 · CVE Program
- CVE-2025-22150 · NVD
- FIRST EPSS
- GHSA-c76h-2ccp-4975 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-22150 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences