CVE-2025-22150 json
Undici Uses Insufficiently Random Values
published 2025-01-21 21 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-0154 , GHSA-c76h-2ccp-4975
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
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.
Patch / fix
- npm undici 5.28.5, 6.21.1, 7.2.3
- nodejs undici 5.28.5, 6.21.1, 7.2.3
- node-undici Debian 14, Debian 13 7.3.0+dfsg1+~cs24.12.11-1
debian advisories DEBIAN-CVE-2025-22150
- npm RHEL 9 1:10.9.2-1.22.13.1.1.module+el9.5.0+22763+17233acb
- nodejs RHEL 9 1:22.13.1-1.module+el9.5.0+22763+17233acb
- nodejs-libs RHEL 9 1:22.13.1-1.module+el9.5.0+22763+17233acb
- nodejs-nodemon RHEL 9 3.0.1-1.module+el9.5.0+22763+17233acb
- nodejs-full-i18n RHEL 9 1:22.13.1-1.module+el9.5.0+22763+17233acb
- nodejs-packaging RHEL 9 2021.06-4.module+el9.5.0+22763+17233acb
- nodejs-packaging-bundler RHEL 9 2021.06-4.module+el9.5.0+22763+17233acb
- npm RHEL 8 1:10.9.2-1.22.13.1.1.module+el8.10.0+22759+46b58560
red hat advisories RHSA-2025:1613RHSA-2025:1611RHSA-2025:1582RHSA-2025:1446RHSA-2025:1443RHSA-2025:1351
- nodejs18 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 18.20.8-150400.9.39.1
- nodejs20 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 20.20.2-150500.11.30.1
- nodejs22 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 22.13.1-150600.13.6.1
- nodejs20 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 20.18.2-150600.3.9.1
- nodejs18 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 18.20.6-150400.9.33.1
- nodejs20 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 20.18.2-150500.11.18.1
- nodejs18 SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 18.20.8-8.44.1
- nodejs20 SLES for SAP 15 SP6, SLES 15 SP6-LTSS 20.20.2-150600.3.21.1
suse advisories SUSE-SU-2026:4261-1SUSE-SU-2026:4248-1SUSE-SU-2026:3930-1SUSE-SU-2026:3929-1SUSE-SU-2025:0284-1SUSE-SU-2025:0237-1
- nodejs26 openSUSE Tumbleweed 26.3.1-1.1
- nodejs24 openSUSE Tumbleweed 24.11.1-2.1
- nodejs22 openSUSE Tumbleweed 22.13.0-1.1
opensuse advisories openSUSE-SU-2026:11110-1openSUSE-SU-2025:15802-1openSUSE-SU-2025:14706-1
- npm AlmaLinux 8 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683
- nodejs AlmaLinux 8 1:18.20.6-1.module_el8.10.0+3960+fcfbf683
- nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.8.0+3613+1ed8c91d
- nodejs-full-i18n AlmaLinux 8 1:18.20.6-1.module_el8.10.0+3960+fcfbf683
- nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.10.0+3961+6a788e57
- nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.10.0+3961+6a788e57
- npm AlmaLinux 8 1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57
- nodejs AlmaLinux 8 1:22.13.1-1.module_el8.10.0+3961+6a788e57
almalinux advisories ALSA-2025:1582ALSA-2025:1611ALSA-2025:1613ALSA-2025:1443ALSA-2025:1446ALSA-2025:1351
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32322+a8b1fd01
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.5.0+31770+0da7192d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32045+2e5d342d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32143+ae966e5b
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32144+1d29a396
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32185+bd121a25
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.5.0+31770+0da7192d
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.6.0+32045+2e5d342d
rocky linux advisories RLSA-2025:1613RLSA-2025:1582RLSA-2025:1611RLSA-2025:1443RLSA-2025:1446RLSA-2025:1351
- nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 22.13.1-r0
alpine advisories ALPINE-CVE-2025-22150
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- nodejs18 CBL-Mariner 2.0 18.20.3-3
- nodejs Azure Linux 3.0 20.14.0-5
azure linux advisories AZL-55931AZL-55950
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-22150 updated cvss 6.8
undici: Undici Uses Insufficiently Random Values
-
Red Hat OpenShift Lightspeed lightspeed-console-plugin-rhel9 Red Hat OpenShift Dev Spaces devspaces/dashboard-rhel8, devspaces/pluginregistry-rhel8affected: workaround, no fix available
-
Red Hat Developer Hub (RHDH) 1.4 rhdhfixed: vendor fix RHSA-2025:1931
-
Red Hat Developer Hub 1.5 rhdhfixed: vendor fix RHSA-2025:3374
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 18.20.6-1.module+el8.10.0+22776+24cd6c55, nodejs 20.18.2-1.module+el8.10.0+22767+a3309b10, nodejs 22.13.1-1.module+el8.10.0+22759+46b58560, nodejs-libs 22.13.1-1.module+el8.10.0+22759+46b58560, nodejs-nodemon 3.0.1-1.module+el8.10.0+21159+f5a7145d, nodejs-nodemon 3.0.1-1.module+el8.10.0+22759+46b58560, +13 morefixed: vendor fix RHSA-2025:1582
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 18.20.6-1.module+el9.5.0+22773+9a359385, nodejs 20.18.2-1.module+el9.5.0+22758+4ad2c198, nodejs 22.13.1-1.module+el9.5.0+22763+17233acb, nodejs-libs 22.13.1-1.module+el9.5.0+22763+17233acb, nodejs-nodemon 3.0.1-1.module+el9.5.0+22763+17233acb, nodejs-nodemon 3.0.1-1.module+el9.5.0+22773+9a359385, +13 morefixed: vendor fix RHSA-2025:1446
-
Red Hat OpenShift AI 2.16 rhoai v2.16.2-1741963152fixed: vendor fix RHSA-2025:3368
-
Red Hat OpenShift AI 2.18 rhoai v2.18.0-1740990297fixed: vendor fix RHSA-2025:2588
-
Red Hat Openshift Data Foundation 4.17 odf4 v4.17-1757605062, odf4 v4.17-1757605101, odf4 v4.17-1757605112, odf4 v4.17-1757605117, odf4 v4.17-1757605118, odf4 v4.17-1757605179, +13 morefixed: vendor fix RHSA-2025:17145
show 2 moreshow fewer
-
Red Hat Openshift Data Foundation 4.18 odf4 v4.18-1761854280, odf4 v4.18-1761854289, odf4 v4.18-1761854319, odf4 v4.18-1761854321, odf4 v4.18-1761854398, odf4 v4.18-1761854422, +12 morefixed: vendor fix RHSA-2025:21368
-
Red Hat Developer Hub (RHDH) 1.4 rhdh Red Hat Developer Hub 1.5 rhdh Red Hat Enterprise Linux 10 nodejs22 Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parent org.keycloak-keycloak-parent Red Hat OpenShift AI (RHOAI) odh-operator-containernot affected: vulnerable code not present
+4 more productsfewer
Red Hat OpenShift AI 2.16 rhoai v2.16.1-1742921168, rhoai v2.16.2-1741882429, rhoai v2.16.2-1742480582, rhoai v2.16.2-1742487039, rhoai v2.16.2-1742487199, rhoai v2.16.2-1742487225, +21 more Red Hat OpenShift AI 2.18 rhoai v2.18.0-1740989446, rhoai v2.18.0-1740989457, rhoai v2.18.0-1740989471, rhoai v2.18.0-1740989612, rhoai v2.18.0-1740989646, rhoai v2.18.0-1740989677, +18 more Red Hat Openshift Data Foundation 4.17 odf4 v4.17-1757612488, odf4 v4.17-1757612498, odf4 v4.17-1757612506, odf4 v4.17-1757612514, odf4 v4.17-1757612520, odf4 v4.17-1757612523, +5 more Red Hat Openshift Data Foundation 4.18 odf4 v4.18-1762335989, odf4 v4.18-1762335993, odf4 v4.18-1762335997, odf4 v4.18-1762335999, odf4 v4.18-1762336001, odf4 v4.18-1762336004, +6 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | undici | >=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 |
Affected products
- nodejs undici
Classification
- Weakness
-
- CWE-330 Use of Insufficiently Random Values
References
-
github.com
/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0
web
-
github.com
/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a
web
-
github.com
/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385
web
-
github.com
/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975
web
-
hackerone.com
/reports/2913312
web
-
blog.securityevaluators.com
/hacking-the-javascript-lottery-80cc437e3b7f
web
-
github.com
/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-22150
advisory
-
github.com
/nodejs/undici
package
Sources
- CVE List CVE-2025-22150
- GitHub Advisory GHSA-c76h-2ccp-4975
- NVD CVE-2025-22150
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.