Undici Uses Insufficiently Random Values
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.
- GHSA-c76h-2ccp-4975
- ALSA-2025:1351
- ALSA-2025:1443
- ALSA-2025:1446
- ALSA-2025:1582
- ALSA-2025:1611
- ALSA-2025:1613
- openSUSE-SU-2025:14706-1
- openSUSE-SU-2025:15802-1
- openSUSE-SU-2026:11110-1
- RHSA-2025:1351
- RHSA-2025:1443
- RHSA-2025:1446
- RHSA-2025:1582
- RHSA-2025:1611
- RHSA-2025:1613
- RLSA-2025:1351
- RLSA-2025:1443
- RLSA-2025:1446
- RLSA-2025:1582
- Published
- Jan 21, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.8% · 54th percentile
- CWE
- CWE-330
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
27
Monitor
Low priority for now.
- CVSS
- 27 / 40 · 6.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 6.8
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
nodejs undici
- >= 4.5.0, < 5.28.5, >= 6.0.0, < 6.21.1, >= 7.0.0, < 7.2.3affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | nodejs | before 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 |
| AlmaLinux:8 | nodejs | before 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs | before 1:20.18.2-1.module_el8.10.0+3958+472a6467 | 1:20.18.2-1.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | nodejs-devel | before 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 |
| AlmaLinux:8 | nodejs-devel | before 1:20.18.2-1.module_el8.10.0+3958+472a6467 | 1:20.18.2-1.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | nodejs-devel | before 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-docs | before 1:20.18.2-1.module_el8.10.0+3958+472a6467 | 1:20.18.2-1.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | nodejs-docs | before 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 |
| AlmaLinux:8 | nodejs-docs | before 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 | 1:18.20.6-1.module_el8.10.0+3960+fcfbf683 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:20.18.2-1.module_el8.10.0+3958+472a6467 | 1:20.18.2-1.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | nodejs-libs | before 1:22.13.1-1.module_el8.10.0+3961+6a788e57 | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-nodemon | before 3.0.1-1.module_el8.8.0+3613+1ed8c91d | 3.0.1-1.module_el8.8.0+3613+1ed8c91d |
| AlmaLinux:8 | nodejs-packaging | before 2021.06-4.module_el8.7.0+3343+ea2b7901 | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| AlmaLinux:8 | nodejs-packaging | before 2021.06-4.module_el8.10.0+3961+6a788e57 | 2021.06-4.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-packaging-bundler | before 2021.06-4.module_el8.10.0+3961+6a788e57 | 2021.06-4.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | nodejs-packaging-bundler | before 2021.06-4.module_el8.10.0+3958+472a6467 | 2021.06-4.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | npm | before 1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57 | 1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:8 | npm | before 1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467 | 1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467 |
| AlmaLinux:8 | npm | before 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683 | 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683 |
| AlmaLinux:8 | v8-12.4-devel | before 3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57 | 3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57 |
| AlmaLinux:9 | nodejs | before 1:18.20.6-1.module_el9.5.0+136+92f38f3c | 1:18.20.6-1.module_el9.5.0+136+92f38f3c |
| AlmaLinux:9 | nodejs | before 1:20.18.2-1.module_el9.5.0+137+381f3eaf | 1:20.18.2-1.module_el9.5.0+137+381f3eaf |
+96
Same product
nodejs: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-35949`undici.request` vulnerable to SSRF using absolute URL on `pathname`40Plan
- CVE-2026-1525undici is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')39Monitor
- CVE-2026-84961undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool36Monitor
- CVE-2026-13697undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directives36Monitor
- CVE-2026-6734undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse35Monitor
- CVE-2026-84933undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches32Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:nodejs | 1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-devel | 1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-docs | 1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-full-i18n | 1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-libs | 1:22.13.1-1.module_el8.10.0+3961+6a788e57 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-packaging | 2021.06-4.module_el8.7.0+3343+ea2b7901 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:nodejs-packaging-bundler | 2021.06-4.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:npm | 1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:v8-12.4-devel | 3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57 · AlmaLinux:8 | Package registry (OSV) |
| alpine:nodejs | 22.13.1-r0 · Alpine:v3.21 | Package registry (OSV) |
| debian:node-undici | 7.3.0+dfsg1+~cs24.12.11-1 · Debian:13 | Package registry (OSV) |
| npm:undici | 5.28.5 | Package registry (OSV) |
| npm:undici | 6.21.1 | Package registry (OSV) |
| npm:undici | 7.2.3 | Package registry (OSV) |
| opensuse:nodejs20 | 20.18.2-150600.3.9.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:nodejs22 | 22.13.1-150600.13.6.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:nodejs24 | 24.11.1-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:nodejs26 | 26.3.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:nodejs | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-debuginfo | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-debugsource | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-devel | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-docs | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-full-i18n | 1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-libs | 1:22.13.1-1.module+el8.10.0+22759+46b58560 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-libs-debuginfo | 1:22.13.1-1.module+el8.10.0+22759+46b58560 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-nodemon | 0:3.0.1-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-packaging | 0:2021.06-4.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:nodejs-packaging-bundler | 0:2021.06-4.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
+8
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- None
Weakness class (CWE)
CWE-330 · Use of Insufficiently Random ValuesCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- blog.securityevaluators.com/hacking-the-javascript-lottery-80cc437e3b7f
- github.com/nodejs/undici/blob/8b06b8250907d92fead664b3368f1d2aa27c1f35/lib/web/fetch/body.js#L113
- github.com/nodejs/undici/commit/711e20772764c29f6622ddc937c63b6eefdf07d0
- github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a
- github.com/nodejs/undici/commit/c3acc6050b781b827d80c86cbbab34f14458d385
- github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975
- hackerone.com/reports/2913312
Vendor advisories and official records. Exploit/PoC links are deliberately left out.