CVEfocus › CVE database › CVE-2025-22150

CVE-2025-22150Undici Uses Insufficiently Random Values

CVSS 6.8 MediumEPSS 1.2% (higher than 68% of CVEs)Published 2025-01-21Updated 2025-02-12Assigner: GitHub_M

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.

CWE-330

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

52Fixed
2Fix pending
2Under investigation
1Will not fix
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-undiciFix pendingUBUNTU-CVE-2025-22150
Ubuntu 26.04node-undiciUnder investigationUBUNTU-CVE-2025-22150
Ubuntu 25.10node-undiciWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-22150
Ubuntu 24.04node-undiciUnder investigationUBUNTU-CVE-2025-22150
Debian 14node-undiciFixed7.3.0+dfsg1+~cs24.12.11-1DEBIAN-CVE-2025-22150
Debian 13node-undiciFixed7.3.0+dfsg1+~cs24.12.11-1DEBIAN-CVE-2025-22150
Debian 12node-undiciFix pendingDEBIAN-CVE-2025-22150
Red Hat Enterprise Linux 10nodejsNot affected
Red Hat Enterprise Linux 10nodejs-develNot affected
Red Hat Enterprise Linux 10nodejs-docsNot affected
Red Hat Enterprise Linux 10nodejs-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs-libsNot affected
Red Hat Enterprise Linux 10nodejs-npmNot affected
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 9nodejsFixed1:18.20.6-1.module+el9.5.0+22773+9a359385RHSA-2025:1443
Red Hat Enterprise Linux 9nodejs-develFixed1:20.18.2-1.module+el9.5.0+22758+4ad2c198RHSA-2025:1446
Red Hat Enterprise Linux 9nodejs-docsFixed1:22.13.1-1.module+el9.5.0+22763+17233acbRHSA-2025:1443
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:20.18.2-1.module+el9.5.0+22758+4ad2c198RHSA-2025:1613
Red Hat Enterprise Linux 9nodejs-libsFixed1:22.13.1-1.module+el9.5.0+22763+17233acbRHSA-2025:1613
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.3.0.z+20478+84a9f781RHSA-2025:1446
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.3.0+19518+63aad52dRHSA-2025:1446
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.5.0+22763+17233acbRHSA-2025:1443
Red Hat Enterprise Linux 9npmFixed1:10.8.2-1.20.18.2.1.module+el9.5.0+22758+4ad2c198RHSA-2025:1446
Red Hat Enterprise Linux 9v8-12.4-develFixed3:12.4.254.21-1.22.13.1.1.module+el9.5.0+22763+17233acbRHSA-2025:1613
Red Hat Enterprise Linux 8nodejsFixed1:22.13.1-1.module+el8.10.0+22759+46b58560RHSA-2025:1582
Red Hat Enterprise Linux 8nodejs-develFixed1:18.20.6-1.module+el8.10.0+22776+24cd6c55RHSA-2025:1351
Red Hat Enterprise Linux 8nodejs-docsFixed1:18.20.6-1.module+el8.10.0+22776+24cd6c55RHSA-2025:1351
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:20.18.2-1.module+el8.10.0+22767+a3309b10RHSA-2025:1582
Red Hat Enterprise Linux 8nodejs-libsFixed1:22.13.1-1.module+el8.10.0+22759+46b58560RHSA-2025:1611
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.10.0+22767+a3309b10RHSA-2025:1582
Red Hat Enterprise Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.9.0+19439+7b18b275RHSA-2025:1611
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.9.0+19439+7b18b275RHSA-2025:1611
Red Hat Enterprise Linux 8npmFixed1:10.8.2-1.20.18.2.1.module+el8.10.0+22767+a3309b10RHSA-2025:1582
Red Hat Enterprise Linux 8v8-12.4-develFixed3:12.4.254.21-1.22.13.1.1.module+el8.10.0+22759+46b58560RHSA-2025:1611
AlmaLinux 9nodejsFixed1:18.20.6-1.module_el9.5.0+136+92f38f3cALSA-2025:1613
AlmaLinux 9nodejs-develFixed1:22.13.1-1.module_el9.5.0+139+09296491ALSA-2025:1446
AlmaLinux 9nodejs-docsFixed1:20.18.2-1.module_el9.5.0+137+381f3eafALSA-2025:1613
AlmaLinux 9nodejs-full-i18nFixed1:22.13.1-1.module_el9.5.0+139+09296491ALSA-2025:1446
AlmaLinux 9nodejs-libsFixed1:22.13.1-1.module_el9.5.0+139+09296491ALSA-2025:1613
AlmaLinux 9nodejs-nodemonFixed3.0.1-1.module_el9.5.0+136+92f38f3cALSA-2025:1443
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.3.0+88+29afeaa2ALSA-2025:1613
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.5.0+139+09296491ALSA-2025:1443
AlmaLinux 9npmFixed1:10.8.2-1.18.20.6.1.module_el9.5.0+136+92f38f3cALSA-2025:1443
AlmaLinux 9v8-12.4-develFixed3:12.4.254.21-1.22.13.1.1.module_el9.5.0+139+09296491ALSA-2025:1613
AlmaLinux 8nodejsFixed1:20.18.2-1.module_el8.10.0+3958+472a6467ALSA-2025:1611
AlmaLinux 8nodejs-develFixed1:18.20.6-1.module_el8.10.0+3960+fcfbf683ALSA-2025:1611
AlmaLinux 8nodejs-docsFixed1:22.13.1-1.module_el8.10.0+3961+6a788e57ALSA-2025:1582
AlmaLinux 8nodejs-full-i18nFixed1:22.13.1-1.module_el8.10.0+3961+6a788e57ALSA-2025:1351
AlmaLinux 8nodejs-libsFixed1:22.13.1-1.module_el8.10.0+3961+6a788e57ALSA-2025:1611
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2025:1351
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.10.0+3961+6a788e57ALSA-2025:1582
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.10.0+3961+6a788e57ALSA-2025:1351
AlmaLinux 8npmFixed1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57ALSA-2025:1582
AlmaLinux 8v8-12.4-develFixed3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57ALSA-2025:1611
Rocky Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2025:1446
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2025:1613
Rocky Linux 8nodejsFixed1:22.13.1-1.module+el8.10.0+1935+d3cbe60fRLSA-2025:1351
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2025:1611
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2025:1351
Alpine Linux 3.24nodejsFixed22.13.1-r0ALPINE-CVE-2025-22150
Alpine Linux 3.23nodejsFixed22.13.1-r0ALPINE-CVE-2025-22150
Alpine Linux 3.22nodejsFixed22.13.1-r0ALPINE-CVE-2025-22150
Alpine Linux 3.21nodejsFixed22.13.1-r0ALPINE-CVE-2025-22150
npm libraryundiciFixed7.2.3GHSA-c76h-2ccp-4975

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.