Vulnerability
CVE-2025-22150
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.
45 advisories report this vulnerability, across 14 ecosystems.
Advisories
-
ALAS2023-2025-822
Amazon Linux 2023 - ALAS2023-2025-822: Important priority package update for nodejs20
-
ALPINE-CVE-2025-22150
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…
- ALPINE-EDGE-CVE-2025-22150
-
ALSA-2025:1351
Important: nodejs:20 security update
-
ALSA-2025:1443
Important: nodejs:20 security update
-
ALSA-2025:1446
Moderate: nodejs:18 security update
-
ALSA-2025:1582
Moderate: nodejs:18 security update
-
ALSA-2025:1611
Important: nodejs:22 security update
-
ALSA-2025:1613
Important: nodejs:22 security update
-
AZL-55931
CVE-2025-22150 affecting package nodejs18 for versions less than 18.20.3-3
-
AZL-55950
CVE-2025-22150 affecting package nodejs for versions less than 20.14.0-5
- CGA-vwmv-f6fc-hjxw
-
DEBIAN-CVE-2025-22150
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…
-
ELSA-2025-1351
ELSA-2025-1351: nodejs:20 security update (IMPORTANT)
-
ELSA-2025-1443
ELSA-2025-1443: nodejs:20 security update (IMPORTANT)
-
ELSA-2025-1446
ELSA-2025-1446: nodejs:18 security update (MODERATE)
-
ELSA-2025-1582
ELSA-2025-1582: nodejs:18 security update (MODERATE)
-
ELSA-2025-1611
ELSA-2025-1611: nodejs:22 security update (IMPORTANT)
-
ELSA-2025-1613
ELSA-2025-1613: nodejs:22 security update (IMPORTANT)
-
GHSA-c76h-2ccp-4975
Use of Insufficiently Random Values in undici
-
RHSA-2025:1351
Red Hat Security Advisory: nodejs:20 security update
-
RHSA-2025:1443
Red Hat Security Advisory: nodejs:20 security update
-
RHSA-2025:1446
Red Hat Security Advisory: nodejs:18 security update
-
RHSA-2025:1582
Red Hat Security Advisory: nodejs:18 security update
-
RHSA-2025:1611
Red Hat Security Advisory: nodejs:22 security update
-
RHSA-2025:1613
Red Hat Security Advisory: nodejs:22 security update
-
RLSA-2025:1351
Important: nodejs:20 security update
-
RLSA-2025:1446
Moderate: nodejs:18 security update
-
RLSA-2025:1582
Moderate: nodejs:18 security update
-
RLSA-2025:1611
Important: nodejs:22 security update
-
RLSA-2025:1613
Important: nodejs:22 security update
-
SUSE-SU-2025:0232-1
Security update for nodejs20
-
SUSE-SU-2025:0233-1
Security update for nodejs18
-
SUSE-SU-2025:0234-1
Security update for nodejs18
-
SUSE-SU-2025:0237-1
Security update for nodejs20
-
SUSE-SU-2025:0284-1
Security update for nodejs22
-
SUSE-SU-2026:3929-1
Security update for nodejs20
-
SUSE-SU-2026:3930-1
Security update for nodejs20
-
SUSE-SU-2026:4248-1
Security update for nodejs18
-
SUSE-SU-2026:4261-1
Security update for nodejs18
-
SUSEVEX-CVE-2025-22150
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…
-
UBUNTU-CVE-2025-22150
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…
-
openSUSE-SU-2025:14706-1
corepack22-22.13.0-1.1 on GA media
-
openSUSE-SU-2025:15802-1
corepack24-24.11.1-2.1 on GA media
-
openSUSE-SU-2026:11110-1
nodejs26-26.3.1-1.1 on GA media
References
- 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/commit/711e20772764c29f6622ddc937c63b6eefdf07d0
- https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a
- https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385
- https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975
- https://hackerone.com/reports/2913312