Skip to content
Noroxi
CVE-2025-22150· NVD / CVE Program· CNA GitHub_M

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.

MediumCVSS 6.8 · v3.1—No exploit Fix available
Published
Jan 21, 2025
Updated
Jun 17, 2026
EPSS
0.8% · 54th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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.

EcosystemPackageAffected rangeFix
AlmaLinux:8nodejsbefore 1:18.20.6-1.module_el8.10.0+3960+fcfbf6831:18.20.6-1.module_el8.10.0+3960+fcfbf683
AlmaLinux:8nodejsbefore 1:22.13.1-1.module_el8.10.0+3961+6a788e571:22.13.1-1.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejsbefore 1:20.18.2-1.module_el8.10.0+3958+472a64671:20.18.2-1.module_el8.10.0+3958+472a6467
AlmaLinux:8nodejs-develbefore 1:18.20.6-1.module_el8.10.0+3960+fcfbf6831:18.20.6-1.module_el8.10.0+3960+fcfbf683
AlmaLinux:8nodejs-develbefore 1:20.18.2-1.module_el8.10.0+3958+472a64671:20.18.2-1.module_el8.10.0+3958+472a6467
AlmaLinux:8nodejs-develbefore 1:22.13.1-1.module_el8.10.0+3961+6a788e571:22.13.1-1.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-docsbefore 1:20.18.2-1.module_el8.10.0+3958+472a64671:20.18.2-1.module_el8.10.0+3958+472a6467
AlmaLinux:8nodejs-docsbefore 1:18.20.6-1.module_el8.10.0+3960+fcfbf6831:18.20.6-1.module_el8.10.0+3960+fcfbf683
AlmaLinux:8nodejs-docsbefore 1:22.13.1-1.module_el8.10.0+3961+6a788e571:22.13.1-1.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-full-i18nbefore 1:22.13.1-1.module_el8.10.0+3961+6a788e571:22.13.1-1.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-full-i18nbefore 1:18.20.6-1.module_el8.10.0+3960+fcfbf6831:18.20.6-1.module_el8.10.0+3960+fcfbf683
AlmaLinux:8nodejs-full-i18nbefore 1:20.18.2-1.module_el8.10.0+3958+472a64671:20.18.2-1.module_el8.10.0+3958+472a6467
AlmaLinux:8nodejs-libsbefore 1:22.13.1-1.module_el8.10.0+3961+6a788e571:22.13.1-1.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-nodemonbefore 3.0.1-1.module_el8.8.0+3613+1ed8c91d3.0.1-1.module_el8.8.0+3613+1ed8c91d
AlmaLinux:8nodejs-packagingbefore 2021.06-4.module_el8.7.0+3343+ea2b79012021.06-4.module_el8.7.0+3343+ea2b7901
AlmaLinux:8nodejs-packagingbefore 2021.06-4.module_el8.10.0+3961+6a788e572021.06-4.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-packaging-bundlerbefore 2021.06-4.module_el8.10.0+3961+6a788e572021.06-4.module_el8.10.0+3961+6a788e57
AlmaLinux:8nodejs-packaging-bundlerbefore 2021.06-4.module_el8.10.0+3958+472a64672021.06-4.module_el8.10.0+3958+472a6467
AlmaLinux:8npmbefore 1:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e571:10.9.2-1.22.13.1.1.module_el8.10.0+3961+6a788e57
AlmaLinux:8npmbefore 1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a64671:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467
AlmaLinux:8npmbefore 1:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf6831:10.8.2-1.18.20.6.1.module_el8.10.0+3960+fcfbf683
AlmaLinux:8v8-12.4-develbefore 3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e573:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57
AlmaLinux:9nodejsbefore 1:18.20.6-1.module_el9.5.0+136+92f38f3c1:18.20.6-1.module_el9.5.0+136+92f38f3c
AlmaLinux:9nodejsbefore 1:20.18.2-1.module_el9.5.0+137+381f3eaf1:20.18.2-1.module_el9.5.0+137+381f3eaf

+96

Other 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 BalancedPool
    36Monitor
  • CVE-2026-13697undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directives
    36Monitor
  • CVE-2026-6734undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse
    35Monitor
  • CVE-2026-84933undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
    32Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:nodejs1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-devel1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-docs1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-full-i18n1:20.18.2-1.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-libs1:22.13.1-1.module_el8.10.0+3961+6a788e57 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91d · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-packaging2021.06-4.module_el8.7.0+3343+ea2b7901 · AlmaLinux:8Package registry (OSV)
almalinux:nodejs-packaging-bundler2021.06-4.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:npm1:10.8.2-1.20.18.2.1.module_el8.10.0+3958+472a6467 · AlmaLinux:8Package registry (OSV)
almalinux:v8-12.4-devel3:12.4.254.21-1.22.13.1.1.module_el8.10.0+3961+6a788e57 · AlmaLinux:8Package registry (OSV)
alpine:nodejs22.13.1-r0 · Alpine:v3.21Package registry (OSV)
debian:node-undici7.3.0+dfsg1+~cs24.12.11-1 · Debian:13Package registry (OSV)
npm:undici5.28.5Package registry (OSV)
npm:undici6.21.1Package registry (OSV)
npm:undici7.2.3Package registry (OSV)
opensuse:nodejs2020.18.2-150600.3.9.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:nodejs2222.13.1-150600.13.6.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:nodejs2424.11.1-2.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:nodejs2626.3.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:nodejs1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-debuginfo1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-debugsource1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-devel1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-docs1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-full-i18n1:20.18.2-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-libs1:22.13.1-1.module+el8.10.0+22759+46b58560 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-libs-debuginfo1:22.13.1-1.module+el8.10.0+22759+46b58560 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-nodemon0:3.0.1-1.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-packaging0:2021.06-4.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:nodejs-packaging-bundler0:2021.06-4.module+el8.10.0+22767+a3309b10 · Red Hat:enterprise_linux:8::appstreamPackage 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.

EPSS, last 120 days

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.

Finders, 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

CVSS 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 help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records