cve.bz

CVE-2025-22150 nodejs undici: Use of Insufficiently Random Values

6.8 mediumEPSS 0.8%Fix available

Medium (6.8) in nodejs undici. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in undici 5.28.5, 6.21.1, 7.2.3.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-01-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-330 Use of Insufficiently Random Values
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • undici (npm): fixed in 5.28.5, 6.21.1, 7.2.3
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita, BellSoft Hardened Containers: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-22150 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22150?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22150?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22150 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nodejs undici>= 4.5.0, < 5.28.5
nodejs undici>= 6.0.0, < 6.21.1
nodejs undici>= 7.0.0, < 7.2.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c76h-2ccp-4975npmundici>=4.5.0 <5.28.55.28.5
GHSA-c76h-2ccp-4975npmundici>=6.0.0 <6.21.16.21.1
GHSA-c76h-2ccp-4975npmundici>=7.0.0 <7.2.37.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-undicino fix listedDEBIAN-CVE-2025-22150
Debian13, 14node-undici7.3.0+dfsg1+~cs24.12.11-1DEBIAN-CVE-2025-22150
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morenode-undicino fix listedUBUNTU-CVE-2025-22150
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.20.6-1.module+el8.10.0+22776+24cd6c55RHSA-2025:1582
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:20.18.2-1.module+el8.10.0+22767+a3309b10RHSA-2025:1351
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.13.1-1.module+el8.10.0+22759+46b58560RHSA-2025:1611
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+21159+f5a7145dRHSA-2025:1582
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+22759+46b58560RHSA-2025:1611
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+22767+a3309b10RHSA-2025:1351
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.10.0+22759+46b58560RHSA-2025:1611
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.10.0+22767+a3309b10RHSA-2025:1351
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.9.0+19439+7b18b275RHSA-2025:1582
Red Hatenterprise_linux:8::appstreamnpm1:10.8.2-1.18.20.6.1.module+el8.10.0+22776+24cd6c55RHSA-2025:1582
Red Hatenterprise_linux:8::appstreamnpm1:10.8.2-1.20.18.2.1.module+el8.10.0+22767+a3309b10RHSA-2025:1351
Red Hatenterprise_linux:8::appstreamnpm1:10.9.2-1.22.13.1.1.module+el8.10.0+22759+46b58560RHSA-2025:1611
14 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morenodejs1818.20.8-150400.9.39.1SUSE-SU-2026:4261-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 6 morenodejs1818.20.6-150400.9.33.1SUSE-SU-2025:0233-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morenodejs2020.18.2-150500.11.18.1SUSE-SU-2025:0232-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morenodejs2020.20.2-150500.11.30.1SUSE-SU-2026:3930-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6nodejs2020.18.2-150600.3.9.1SUSE-SU-2025:0237-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6nodejs2222.13.1-150600.13.6.1SUSE-SU-2025:0284-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5nodejs1818.20.6-8.33.1SUSE-SU-2025:0234-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5nodejs1818.20.8-8.44.1SUSE-SU-2026:4248-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6nodejs2020.20.2-150600.3.21.1SUSE-SU-2026:3929-1
openSUSELeap 15.6nodejs2020.18.2-150600.3.9.1SUSE-SU-2025:0237-1
openSUSELeap 15.6nodejs2222.13.1-150600.13.6.1SUSE-SU-2025:0284-1
openSUSETumbleweednodejs2222.13.0-1.1openSUSE-SU-2025:14706-1
openSUSETumbleweednodejs2424.11.1-2.1openSUSE-SU-2025:15802-1
openSUSETumbleweednodejs2626.3.1-1.1openSUSE-SU-2026:11110-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.6-1.module_el8.10.0+3960+fcfbf683ALSA-2025:1582
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:20.18.2-1.module_el8.10.0+3958+472a6467ALSA-2025:1351
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:22.13.1-1.module_el8.10.0+3961+6a788e57ALSA-2025:1611
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2025:1351 ALSA-2025:1582 ALSA-2025:1611
AlmaLinux8nodejs-packaging2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2025:1351
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.10.0+3961+6a788e57ALSA-2025:1582 ALSA-2025:1611
AlmaLinux8nodejs-packaging-bundler2021.06-4.module_el8.10.0+3958+472a6467ALSA-2025:1351
AlmaLinux8npm1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683ALSA-2025:1582
AlmaLinux8npm1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467ALSA-2025:1351
AlmaLinux8npm1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57ALSA-2025:1611
AlmaLinux8v8-12.4-devel3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57ALSA-2025:1611
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.6-1.module_el9.5.0+136+92f38f3cALSA-2025:1446
12 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:18.20.6-1.module+el8.10.0+1934+a521c41fRLSA-2025:1582
Rocky Linux8nodejs1:20.18.2-1.module+el8.10.0+1932+2f13f218RLSA-2025:1351
Rocky Linux8nodejs1:22.13.1-1.module+el8.10.0+1935+d3cbe60fRLSA-2025:1611
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2025:1351 RLSA-2025:1582 RLSA-2025:1611
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2025:1351 RLSA-2025:1582 RLSA-2025:1611
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2025:1446 RLSA-2025:1613
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2025:1446 RLSA-2025:1613
6 more for Rocky Linux in the JSON.
Alpinev3.21, v3.22, v3.23 and 1 morenodejs22.13.1-r0ALPINE-CVE-2025-22150
Azure Linux2nodejs1818.20.3-3AZL-55931
Azure Linux3nodejs20.14.0-5AZL-55950
Alpaquita23nodejs18.20.6-r0BELL-CVE-2025-22150
Alpaquitastreamnodejs22.13.1-r0BELL-CVE-2025-22150
BellSoft Hardened Containers23nodejs18.20.6-r0BELL-CVE-2025-22150
BellSoft Hardened Containersstreamnodejs22.13.1-r0BELL-CVE-2025-22150

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

MODERATE impact: CVE-2025-22150 affects Red Hat products and community streams that ship the undici component. In affected applications, undici uses Math.random() to select multipart/form-data boundaries; an attacker-controlled destination can observe enough generated values to predict the boundary and, under the stated conditions, tamper with requests sent to backend APIs. The CVSS 3.1 score is 6.8 (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N), reflecting the required high attack complexity and user interaction. Current affects mark Fedora 40/41 nodejs20/nodejs22, OpenShift Lightspeed, Red Hat OpenShift AI, Red Hat Developer Hub, Red Hat OpenShift Dev Spaces, and Ansible Services as affected or delegated for handling; records delegated as AFFECTED indicate that a fix is being pursued, while the current RHOAI 2.13 and 2.17 records are marked WONTFIX. Enterprise Application Platform streams and several RHOAI streams/components are delegated NOTAFFECTED, and Red Hat Enterprise Linux 10.0 nodejs22 is NOTAFFECTED because the vulnerable code is not present. The current data provides no further technical reason for the Enterprise Application Platform or RHOAI delegated-NOTAFFECTED records, so no additional reason is asserted. The issue remains conditional on an application sending multipart requests to an attacker-controlled site.

Red Hat's mitigation

Until a vendor-provided update containing the fix is available, do not send multipart/form-data requests from affected applications to attacker-controlled destinations. Restrict outbound destinations for such requests with an allowlist or firewall policy, or disable the application feature or path that sends these requests where operationally possible. Upgrade to a vendor-provided update containing the fix when available.

ProductPackageStateAdvisory
Red Hat Developer Hub 1.3 on RHEL 9rhdh-hub-container-1.3-142Fixed 2025-02-13RHSA-2025:1454
Red Hat Enterprise Linux 8nodejs:20-8100020250203134842.489197e6Fixed 2025-02-12RHSA-2025:1351
Red Hat Enterprise Linux 8nodejs:18-8100020250207121904.489197e6Fixed 2025-02-17RHSA-2025:1582
Red Hat Enterprise Linux 8nodejs:22-8100020250130144944.6d880403Fixed 2025-02-17RHSA-2025:1611
Red Hat Enterprise Linux 9nodejs:20-9050020250130114516.rhel9Fixed 2025-02-13RHSA-2025:1443
Red Hat Enterprise Linux 9nodejs:18-9050020250206154514.rhel9Fixed 2025-02-13RHSA-2025:1446
Red Hat Enterprise Linux 9nodejs:22-9050020250131131518.rhel9Fixed 2025-02-17RHSA-2025:1613
Red Hat Developer Hub 1.5rhdh/rhdh-hub-rhel9:1.5Fixed 2025-03-27RHSA-2025:3374
Red Hat Developer Hub (RHDH) 1.4rhdh/rhdh-hub-rhel9:1.4Fixed 2025-02-27RHSA-2025:1931
Red Hat OpenShift AI 2.16rhoai/odh-dashboard-rhel8:v2.16.2-1741963152Fixed 2025-03-27RHSA-2025:3368
Red Hat OpenShift AI 2.16rhoai/odh-dashboard-rhel8:v2.16.2-1741963152Fixed 2025-03-31RHSA-2025:3397
Red Hat OpenShift AI 2.18rhoai/odh-dashboard-rhel8:v2.18.0-1740990297Fixed 2025-03-10RHSA-2025:2588
Red Hat Openshift Data Foundation 4.17odf4/cephcsi-rhel9:v4.17-1757605117Fixed 2025-10-01RHSA-2025:17145
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-console-plugin-rhel9Affected
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentNot affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-rhel8-operatorNot affected
Red Hat OpenShift Dev Spacesdevspaces/dashboard-rhel8Affected
Red Hat OpenShift Dev Spacesdevspaces/pluginregistry-rhel8Affected
37 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22150.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON