Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodejs | undici | >= 4.5.0, < 5.28.5, >= 6.0.0, < 6.21.1, >= 7.0.0, < 7.2.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-undici | 7.3.0+dfsg1+~cs24.12.11-1 | — |
| Debian 13 | node-undici | 7.3.0+dfsg1+~cs24.12.11-1 | — |
| Debian 12 | node-undici | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-undici | No fix yet | — |
| Ubuntu 26.04 LTS | node-undici | No fix yet | — |
| Ubuntu 25.10 | node-undici | No fix yet | — |
| Ubuntu 24.04 LTS | node-undici | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | nodejs +3 | 1:18.20.6-1.module+el9.5.0+22773+9a359385 | RHSA-2025:1613, RHSA-2025:1446, RHSA-2025:1443 |
| RHEL 9 | nodejs-libs | 1:22.13.1-1.module+el9.5.0+22763+17233acb | RHSA-2025:1613 |
| RHEL 9 | nodejs-nodemon | 3.0.1-1.module+el9.3.0.z+20478+84a9f781 | RHSA-2025:1613, RHSA-2025:1446, RHSA-2025:1443 |
| RHEL 9 | nodejs-packaging +1 | 2021.06-4.module+el9.3.0+19518+63aad52d | RHSA-2025:1613, RHSA-2025:1446, RHSA-2025:1443 |
| RHEL 9 | npm | 1:10.8.2-1.18.20.6.1.module+el9.5.0+22773+9a359385 | RHSA-2025:1613, RHSA-2025:1446, RHSA-2025:1443 |
| RHEL 9 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module+el9.5.0+22763+17233acb | RHSA-2025:1613 |
| RHEL 8 | nodejs +3 | 1:18.20.6-1.module+el8.10.0+22776+24cd6c55 | RHSA-2025:1611, RHSA-2025:1582, RHSA-2025:1351 |
| RHEL 8 | nodejs-libs | 1:22.13.1-1.module+el8.10.0+22759+46b58560 | RHSA-2025:1611 |
| RHEL 8 | nodejs-nodemon | 3.0.1-1.module+el8.10.0+21159+f5a7145d | RHSA-2025:1611, RHSA-2025:1582, RHSA-2025:1351 |
| RHEL 8 | nodejs-packaging +1 | 2021.06-4.module+el8.9.0+19439+7b18b275 | RHSA-2025:1611, RHSA-2025:1582, RHSA-2025:1351 |
| RHEL 8 | npm | 1:10.8.2-1.18.20.6.1.module+el8.10.0+22776+24cd6c55 | RHSA-2025:1611, RHSA-2025:1582, RHSA-2025:1351 |
| RHEL 8 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module+el8.10.0+22759+46b58560 | RHSA-2025:1611 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | nodejs +3 | 1:18.20.6-1.module_el9.5.0+136+92f38f3c | ALSA-2025:1613, ALSA-2025:1446, ALSA-2025:1443 |
| AlmaLinux 9 | nodejs-libs | 1:22.13.1-1.module_el9.5.0+139+09296491 | ALSA-2025:1613 |
| AlmaLinux 9 | nodejs-nodemon | 3.0.1-1.module_el9.2.0+36+853e48f5 | ALSA-2025:1613, ALSA-2025:1446, ALSA-2025:1443 |
| AlmaLinux 9 | nodejs-packaging | 2021.06-4.module_el9.3.0+88+29afeaa2 | ALSA-2025:1613, ALSA-2025:1446, ALSA-2025:1443 |
| AlmaLinux 9 | nodejs-packaging-bundler | 2021.06-4.module_el9.5.0+124+df88fe49 | ALSA-2025:1613, ALSA-2025:1446, ALSA-2025:1443 |
| AlmaLinux 9 | npm | 1:10.8.2-1.18.20.6.1.module_el9.5.0+136+92f38f3c | ALSA-2025:1613, ALSA-2025:1446, ALSA-2025:1443 |
| AlmaLinux 9 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module_el9.5.0+139+09296491 | ALSA-2025:1613 |
| AlmaLinux 8 | nodejs +3 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 | ALSA-2025:1611, ALSA-2025:1582, ALSA-2025:1351 |
| AlmaLinux 8 | nodejs-libs | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | ALSA-2025:1611 |
| AlmaLinux 8 | nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d | ALSA-2025:1611, ALSA-2025:1582, ALSA-2025:1351 |
| AlmaLinux 8 | nodejs-packaging | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2025:1611, ALSA-2025:1582, ALSA-2025:1351 |
| AlmaLinux 8 | nodejs-packaging-bundler | 2021.06-4.module_el8.10.0+3958+472a6467 | ALSA-2025:1611, ALSA-2025:1582, ALSA-2025:1351 |
| AlmaLinux 8 | npm | 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683 | ALSA-2025:1611, ALSA-2025:1582, ALSA-2025:1351 |
| AlmaLinux 8 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57 | ALSA-2025:1611 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | nodejs-nodemon | 3.0.1-1.module+el9.5.0+31770+0da7192d | RLSA-2025:1613, RLSA-2025:1446 |
| Rocky Linux 9 | nodejs-packaging | 2021.06-4.module+el9.5.0+31770+0da7192d | RLSA-2025:1613, RLSA-2025:1446 |
| Rocky Linux 8 | nodejs | 1:18.20.6-1.module+el8.10.0+1934+a521c41f | RLSA-2025:1611, RLSA-2025:1582, RLSA-2025:1351 |
| Rocky Linux 8 | nodejs-nodemon | 3.0.1-1.module+el8.10.0+1666+930e28e8 | RLSA-2025:1611, RLSA-2025:1582, RLSA-2025:1351 |
| Rocky Linux 8 | nodejs-packaging | 2021.06-4.module+el8.10.0+1667+4a788d89 | RLSA-2025:1611, RLSA-2025:1582, RLSA-2025:1351 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | nodejs20 | 20.18.2-150600.3.9.1 | SUSE-SU-2026:3929-1, SUSE-SU-2025:0237-1 |
| SLES 15 SP6 | nodejs22 | 22.13.1-150600.13.6.1 | SUSE-SU-2025:0284-1 |
| SLES 15 SP5 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SLES 15 SP5 | nodejs20 | 20.18.2-150500.11.18.1 | SUSE-SU-2026:3930-1, SUSE-SU-2025:0232-1 |
| SLES 15 SP4 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SLES 12 SP5 | nodejs18 | 18.20.6-8.33.1 | SUSE-SU-2026:4248-1, SUSE-SU-2025:0234-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | nodejs20 | 20.20.2-150600.3.21.1 | SUSE-SU-2026:3929-1 |
| SLES for SAP 15 SP5 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SLES for SAP 15 SP5 | nodejs20 | 20.18.2-150500.11.18.1 | SUSE-SU-2026:3930-1, SUSE-SU-2025:0232-1 |
| SLES for SAP 15 SP4 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SLE HPC 15 SP5 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SLE HPC 15 SP5 | nodejs20 | 20.18.2-150500.11.18.1 | SUSE-SU-2026:3930-1, SUSE-SU-2025:0232-1 |
| SLE HPC 15 SP4 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2026:4261-1, SUSE-SU-2025:0233-1 |
| SUSE Manager Server 4.3 | nodejs18 | 18.20.6-150400.9.33.1 | SUSE-SU-2025:0233-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nodejs22 | 22.13.0-1.1 | openSUSE-SU-2025:14706-1 |
| openSUSE Tumbleweed | nodejs24 | 24.11.1-2.1 | openSUSE-SU-2025:15802-1 |
| openSUSE Tumbleweed | nodejs26 | 26.3.1-1.1 | openSUSE-SU-2026:11110-1 |
| openSUSE Leap 15.6 | nodejs20 | 20.18.2-150600.3.9.1 | SUSE-SU-2025:0237-1 |
| openSUSE Leap 15.6 | nodejs22 | 22.13.1-150600.13.6.1 | SUSE-SU-2025:0284-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nodejs | 22.13.1-r0 | — |
| Alpine v3.23 | nodejs | 22.13.1-r0 | — |
| Alpine v3.22 | nodejs | 22.13.1-r0 | — |
| Alpine v3.21 | nodejs | 22.13.1-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nodejs20 +4 | 1:20.18.2-1.amzn2023.0.1 | ALAS2023-2025-822 |
| Amazon Linux 2023 | nodejs20-npm | 1:10.8.2-1.20.18.2.1.amzn2023.0.1 | ALAS2023-2025-822 |
| Amazon Linux 2023 | v8-11.3-devel | 3:11.3.244.8-1.20.18.2.1.amzn2023.0.1 | ALAS2023-2025-822 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nodejs | 20.14.0-5 | — |
| Azure Linux 2 (CBL-Mariner) | nodejs18 | 18.20.3-3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | nodejs +3 | 1:18.20.6-1.module+el9.5.0+90514+74072e0a | ELSA-2025-1613, ELSA-2025-1446, ELSA-2025-1443 |
| Oracle Linux 9 | nodejs-libs | 1:22.13.1-1.module+el9.5.0+90517+729550a4 | ELSA-2025-1613 |
| Oracle Linux 9 | nodejs-nodemon | 3.0.1-1.module+el9.3.0+90066+12d4a8d7 | ELSA-2025-1613, ELSA-2025-1446, ELSA-2025-1443 |
| Oracle Linux 9 | nodejs-packaging +1 | 2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2025-1613, ELSA-2025-1446, ELSA-2025-1443 |
| Oracle Linux 9 | npm | 1:10.8.2-1.18.20.6.1.module+el9.5.0+90514+74072e0a | ELSA-2025-1613, ELSA-2025-1446, ELSA-2025-1443 |
| Oracle Linux 9 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module+el9.5.0+90517+729550a4 | ELSA-2025-1613 |
| Oracle Linux 8 | nodejs +3 | 1:18.20.6-1.module+el8.10.0+90515+1118f177 | ELSA-2025-1611, ELSA-2025-1582, ELSA-2025-1351 |
| Oracle Linux 8 | nodejs-libs | 1:22.13.1-1.module+el8.10.0+90518+cdafa262 | ELSA-2025-1611 |
| Oracle Linux 8 | nodejs-nodemon | 3.0.1-1.module+el8.10.0+90402+68b79193 | ELSA-2025-1611, ELSA-2025-1582, ELSA-2025-1351 |
| Oracle Linux 8 | nodejs-packaging +1 | 2021.06-4.module+el8.9.0+90157+ed89dc20 | ELSA-2025-1611, ELSA-2025-1582, ELSA-2025-1351 |
| Oracle Linux 8 | npm | 1:10.8.2-1.18.20.6.1.module+el8.10.0+90515+1118f177 | ELSA-2025-1611, ELSA-2025-1582, ELSA-2025-1351 |
| Oracle Linux 8 | v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module+el8.10.0+90518+cdafa262 | ELSA-2025-1611 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | jitsucom-jitsu | 2.8.6-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | undici | >= 4.5.0, < 5.28.5 | 5.28.5 | GHSA-c76h-2ccp-4975 |
| npm | undici | >= 6.0.0, < 6.21.1 | 6.21.1 | GHSA-c76h-2ccp-4975 |
| npm | undici | >= 7.0.0, < 7.2.3 | 7.2.3 | GHSA-c76h-2ccp-4975 |
Advisories 37
- ALSA-2025:1613 Important: nodejs:22 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:1443 Important: nodejs:20 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:1446 Moderate: nodejs:18 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:1351 Important: nodejs:20 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:1582 Moderate: nodejs:18 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:1611 Important: nodejs:22 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2025:1611 Red Hat Security Advisory: nodejs:22 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:1613 Red Hat Security Advisory: nodejs:22 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:1582 Red Hat Security Advisory: nodejs:18 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:1446 Red Hat Security Advisory: nodejs:18 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:1443 Red Hat Security Advisory: nodejs:20 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:1351 Red Hat Security Advisory: nodejs:20 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- WID-SEC-2025-0156 Node.js: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 28, 2026
- SUSE-SU-2026:4261-1 Security update for nodejs18 SUSE / openSUSE Security Updates · Sep 18, 2026
- SUSE-SU-2026:4248-1 Security update for nodejs18 SUSE / openSUSE Security Updates · Sep 18, 2026
- SUSE-SU-2026:3929-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Sep 10, 2026
- SUSE-SU-2026:3930-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Sep 10, 2026
- openSUSE-SU-2026:11110-1 nodejs26-26.3.1-1.1 on GA media SUSE / openSUSE Security Updates · Jun 24, 2026
- openSUSE-SU-2025:15802-1 corepack24-24.11.1-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- RLSA-2025:1351 Important: nodejs:20 security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2025:1582 Moderate: nodejs:18 security update Rocky Linux Security Advisories · Feb 4, 2026
- RLSA-2025:1611 Important: nodejs:22 security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2025:0237-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0234-1 Security update for nodejs18 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0284-1 Security update for nodejs22 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14706-1 corepack22-22.13.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0233-1 Security update for nodejs18 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:0232-1 Security update for nodejs20 SUSE / openSUSE Security Updates · Feb 4, 2026
- RLSA-2025:1446 Moderate: nodejs:18 security update Rocky Linux Security Advisories · Oct 9, 2025
- RLSA-2025:1613 Important: nodejs:22 security update Rocky Linux Security Advisories · Oct 9, 2025
- ELSA-2025-1613 Important: nodejs:22 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Feb 19, 2025
- ELSA-2025-1611 Important: nodejs:22 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 18, 2025
- ELSA-2025-1582 Moderate: nodejs:18 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 18, 2025
- ELSA-2025-1446 Moderate: nodejs:18 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Feb 14, 2025
- ELSA-2025-1443 Important: nodejs:20 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Feb 14, 2025
- ELSA-2025-1351 Important: nodejs:20 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Feb 13, 2025
- ALAS2023-2025-822 Important: nodejs20 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 5, 2025
References
- 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