CVE-2025-22150
undici: Undici Uses Insufficiently Random Values
Overview
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.
Source: OX vulnerability database
Severity
6.8 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Weakness: CWE-330
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | >=4.5.0, <5.28.5>=6.0.0, <6.21.1>=7.0.0, <7.2.3 | 5.28.56.21.17.2.3 |
| Seal npm | @seal-security/undici | >=4.16.0-sp1, <4.16.0-sp999 | 4.16.0-sp999 |
| Seal npm | undici | >=4.16.0-sp0, <4.16.0-sp999 | 4.16.0-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 106 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:20.14.0-5.azl3 |
Oracle Linux 2 releases · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:10.9.2-1.22.13.1.1.module+el8.10.0+90518+cdafa262 |
| 8 | nodejs +4 | 1:22.13.1-1.module+el8.10.0+90518+cdafa262 |
| 8 | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+90518+cdafa262 |
| 8 | nodejs-nodemon | 3.0.1-1.module+el8.10.0+90518+cdafa262 |
| 8 | v8-12-4-devel | 3:12.4.254.21-1.22.13.1.1.module+el8.10.0+90518+cdafa262 |
| 9 | npm | 1:10.9.2-1.22.13.1.1.module+el9.5.0+90517+729550a4 |
4 more rows
Red Hat 6 releases · 5 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nodejs:18) | nodejs-packaging +1 | 0:2021.06-4.module+el8.9.0+19439+7b18b275 | RHSA-2025:1582 |
| 8 (nodejs:18) | nodejs-nodemon | 0:3.0.1-1.module+el8.10.0+21159+f5a7145d | RHSA-2025:1582 |
| 8 (nodejs:18) | npm | 1:10.8.2-1.18.20.6.1.module+el8.10.0+22776+24cd6c55 | RHSA-2025:1582 |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.6-1.module+el8.10.0+22776+24cd6c55 | RHSA-2025:1582 |
| 8 (nodejs:20) | nodejs-packaging +1 | 0:2021.06-4.module+el8.10.0+22767+a3309b10 | RHSA-2025:1351 |
| 8 (nodejs:20) | nodejs-nodemon | 0:3.0.1-1.module+el8.10.0+22767+a3309b10 | RHSA-2025:1351 |
20 more rows
SUSE Linux Enterprise 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | nodejs18 +3 | 18.20.6-8.33.1 | SUSE-SU-2025:0234-1 |
| 15.4 | nodejs18 +3 | 18.20.6-150400.9.33.1 | SUSE-SU-2025:0233-1 |
| 15.5 | nodejs18 +3 | 18.20.6-150400.9.33.1 | SUSE-SU-2025:0233-1 |
| 15.5 | nodejs20 +3 | 20.18.2-150500.11.18.1 | SUSE-SU-2025:0232-1 |
| 15.6 | nodejs20 +3 | 20.18.2-150600.3.9.1 | SUSE-SU-2025:0237-1 |
| 15.6 | nodejs22 +3 | 22.13.1-150600.13.6.1 | SUSE-SU-2025:0284-1 |
alma 5 releases · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | npm | 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683 |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 |
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module_el8.10.0+3961+6a788e57 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d |
| 8 (nodejs:20) | npm | 1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467 |
| 8 (nodejs:20) | nodejs +3 | 1:20.18.2-1.module_el8.10.0+3958+472a6467 |
19 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 22.13.1-r0 |
| 3.23 | nodejs | 22.13.1-r0 |
| 3.24 | nodejs | 22.13.1-r0 |
| edge | nodejs | 22.13.1-r0 |
amazon linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs20-npm | 1:10.8.2-1.20.18.2.1.amzn2023.0.1 |
| 2023 | nodejs20 +7 | 1:20.18.2-1.amzn2023.0.1 |
| 2023 | v8-11-3-devel | 3:11.3.244.8-1.20.18.2.1.amzn2023.0.1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jitsucom-jitsu | 2.8.6-r1 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | 7.3.0+dfsg1+~cs24.12.11-1 |
| 14 | node-undici | 7.3.0+dfsg1+~cs24.12.11-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 7.3.0+dfsg1+~cs24.12.11-1 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| anythingllm | 1.16.2-r0 | |
| kibana-8 | 8.19.0-r0 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack22 +4 | 22.13.0-1.1 | openSUSE-SU-2025:14706-1 |
| Tumbleweed | corepack24 +4 | 24.11.1-2.1 | openSUSE-SU-2025:15802-1 |
| Tumbleweed | nodejs26 +3 | 26.3.1-1.1 | openSUSE-SU-2026:11110-1 |
rocky 4 releases · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | npm | 1:10.8.2-1.18.20.6.1.module+el8.10.0+1934+a521c41f |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.6-1.module+el8.10.0+1934+a521c41f |
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module+el8.10.0+1667+4a788d89 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module+el8.10.0+1666+930e28e8 |
| 8 (nodejs:20) | npm | 1:10.8.2-1.20.18.2.1.module+el8.10.0+1932+2f13f218 |
| 8 (nodejs:20) | nodejs +3 | 1:20.18.2-1.module+el8.10.0+1932+2f13f218 |
13 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici +1 | 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4.aikido.6 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jitsucom-jitsu | 2.8.6-r1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:1611
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:1613
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-22150
- blog.securityevaluators.com https://blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f
- bugzilla.redhat.com https://bugzilla.redhat.com/2339176
- bugzilla.redhat.com https://bugzilla.redhat.com/2339392
- bugzilla.redhat.com https://bugzilla.redhat.com/2342618
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2339176
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2339392
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2342618
Show all 27 references
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-22150
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-23083
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-23085
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-1613.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:1611
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113
- github.com https://github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0
- github.com https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a
- github.com https://github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975
- hackerone.com https://hackerone.com/reports/2913312
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-22150.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-1613.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-22150
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-22150
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.