Skip to main content

undici CVE-2026-12151

| EUVDEUVD-2026-37747 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-06-17 openjs GHSA-vxpw-j846-p89q
7.5
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Node.js target using undici WebSocket client
  2. Delivery
    Induce outbound connection to attacker-controlled ws:// endpoint
  3. Exploit
    Complete WebSocket handshake
  4. Install
    Stream unbounded empty continuation frames
  5. C2
    Bypass maxPayloadSize via fragment count
  6. Execute
    Exhaust client process heap memory
  7. Impact
    Crash Node.js worker causing denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim application use undici's WebSocket client (new WebSocket() or WebSocketStream) at version 6.17.0 or later and that the attacker be able to cause that client to initiate a WebSocket connection to an attacker-controlled or compromised endpoint - for example through a user-supplied target URL, an SSRF gadget, or a compromised upstream service. No authentication on the victim side, no user interaction, and no special configuration of undici are needed, but applications that never open client WebSocket connections, or that only connect to a fixed list of trusted internal endpoints, are not practically reachable. The flaw is in the client, so server-only undici HTTP usage is out of scope.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H accurately reflects a pure availability impact reachable over the network with no authentication or interaction, yielding a 7.5 High score. However, the realistic risk is narrower than the raw score suggests because exploitation requires the victim client to be induced to connect to an attacker-controlled or compromised WebSocket endpoint - undici is a client library, not a server-side listener, so the attacker cannot reach arbitrary deployments unencouraged. EPSS, KEV and POC signals are all absent from the input, consistent with a newly disclosed DoS in a library dependency rather than a mass-exploited flaw; prioritization should be high for Node.js services that initiate outbound WebSocket connections to untrusted or user-supplied URLs (webhook relays, SSRF-prone proxies, federation clients) and routine for services that only connect to trusted internal endpoints.

Exploit ScenarioDerived

An attacker stands up a malicious WebSocket server and lures a vulnerable Node.js application into connecting - for example via a webhook URL field, an SSRF primitive, or a compromised upstream service the client federates with. Once the handshake completes the server streams a never-ending sequence of tiny or empty continuation frames without setting FIN, and undici buffers per-fragment state until the Node process exhausts heap memory and crashes. No public PoC is referenced in the advisory at this time.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 17, 2026

Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or compromised WebSocket server to crash Node.js client processes by streaming an unbounded number of small or empty continuation frames. Because undici only caps cumulative payload bytes via maxPayloadSize and does not limit fragment count, attackers can drive unbounded memory growth without ever exceeding the configured size threshold. No public exploit identified at time of analysis and the vulnerability is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade undici to 6.26.0, 7.28.0, or 8.5.0 or later on the corresponding release line, as documented in the upstream GHSA-vxpw-j846-p89q advisory (https://github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q) and the OpenJS CNA index (https://cna.openjsf.org/security-advisories.html); for Node.js runtimes that ship undici internally, take the Node.js release that bundles a fixed undici version. The vendor explicitly states no workaround is available, so compensating controls must operate outside the library: restrict outbound WebSocket connections to an allow-list of trusted origins, refuse user-supplied ws:// or wss:// URLs at the application layer, and apply per-process memory limits (e.g., container cgroup memory caps or Node --max-old-space-size) so an exhausted worker crashes and restarts rather than starving the host - accepting that these only contain blast radius and do not prevent the DoS itself.

Affected VersionsENISA

undici 7.0.0 <7.28.0
undici 8.0.0 <8.5.0
undici 0 <6.26.0

Affected Packages

npm undici fix: 6.26.0, 6.27.0, 7.28.0, 8.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

undici is the high-performance HTTP/1.1 and WebSocket client built into Node.js core and used widely via the standalone npm package (cpe:2.3:a:undici:undici). Its WebSocket implementation (new WebSocket(...) and the WebSocketStream API) is responsible for reassembling RFC 6455 fragmented messages, where a single logical message can be split across many continuation frames terminated by a FIN bit. The defect is a classic CWE-400 Uncontrolled Resource Consumption: the reassembly buffer enforces a per-message byte ceiling (maxPayloadSize) but tracks no fragment-count ceiling, so adversary-controlled framing - including zero-length continuations - incrementally allocates buffer and bookkeeping state that the cumulative-size check never trips.

Know when Undici gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Client connects over the network to an attacker-controlled server with no auth or interaction; impact is pure availability via memory exhaustion, no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.5 HIGH

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Jun 19, 2026 - 16:01 EUVD

DescriptionCVE.org

Impact: The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service.

Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.

All releases starting at undici 6.17.0 are affected.

Patches: Upgrade to undici >= 6.26.0, >= 7.28.0, or >= 8.5.0. Workarounds: No workaround is available. The fix must be applied through an upgrade.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 28 npm packages depend on undici (16 direct, 23 indirect)

Ecosystem-wide dependent count for version 7.0.0.

Executive ViewAI

Why It Matters

The undici WebSocket client library in versions 6.17.0 and later can be crashed by malicious or compromised WebSocket servers through memory exhaustion, causing denial of service to dependent Node.js applications. Organizations using undici for WebSocket communication face potential service outages if their applications connect to untrusted servers. Immediate inventory and access control measures are required to limit exposure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict WebSocket endpoints to pre-approved, trusted servers only; (2) Deploy rate limiting on WebSocket frame ingestion via reverse proxy or load balancer; (3) Implement memory usage monitoring with automatic process restart on threshold breach; (4) Evaluate version downgrade to pre-6.17.0 if operationally feasible.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Undici

View all
CVE-2022-35949 CRITICAL POC
9.8 Aug 12

undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge

CVE-2026-14643 HIGH POC
7.5 Jul 29

Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from

CVE-2026-16729 MEDIUM POC
6.5 Jul 29

Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent

CVE-2022-31151 MEDIUM POC
6.5 Jul 21

Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2022-32210 MEDIUM POC
6.5 Jul 14

`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th

CVE-2026-15157 MEDIUM POC
5.4 Jul 29

CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic

CVE-2023-23936 MEDIUM POC
5.4 Feb 16

Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,

CVE-2022-35948 MEDIUM POC
5.3 Aug 15

undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection

CVE-2026-13697 CRITICAL
9.1 Jul 29

Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions

CVE-2026-109383 CRITICAL POC
9.1 Oct 15

Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0

CVE-2026-109829 CRITICAL POC
9.1 Oct 15

Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug

CVE-2026-84961 CRITICAL
9.1 Sep 04

TLS certificate validation bypass in undici's BalancedPool dispatcher silently discards function-valued options - includ

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Affected

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-12151 ADVISORY https://vuldb.com/vuln/372064 REF https://access.redhat.com/errata/RHSA-2026:34342 REF https://access.redhat.com/errata/RHSA-2026:35841 REF https://access.redhat.com/errata/RHSA-2026:35842 REF https://access.redhat.com/errata/RHSA-2026:35891 REF https://access.redhat.com/errata/RHSA-2026:35892 REF https://access.redhat.com/errata/RHSA-2026:36621 REF https://access.redhat.com/errata/RHSA-2026:36754 REF https://access.redhat.com/errata/RHSA-2026:36820 REF https://access.redhat.com/errata/RHSA-2026:38009 REF https://access.redhat.com/errata/RHSA-2026:38236 REF https://access.redhat.com/errata/RHSA-2026:39246 REF https://access.redhat.com/errata/RHSA-2026:39868 REF https://access.redhat.com/errata/RHSA-2026:41929 REF https://access.redhat.com/errata/RHSA-2026:41947 REF https://access.redhat.com/errata/RHSA-2026:47728 REF https://access.redhat.com/errata/RHSA-2026:48124 REF https://access.redhat.com/errata/RHSA-2026:48151 REF https://access.redhat.com/errata/RHSA-2026:52399 REF https://access.redhat.com/errata/RHSA-2026:56366 REF https://access.redhat.com/errata/RHSA-2026:56431 REF https://access.redhat.com/errata/RHSA-2026:57013 REF https://access.redhat.com/errata/RHSA-2026:60520 REF https://access.redhat.com/errata/RHSA-2026:62260 REF https://access.redhat.com/errata/RHSA-2026:65126 REF https://access.redhat.com/errata/RHSA-2026:66488 REF https://access.redhat.com/errata/RHSA-2026:66545 REF https://access.redhat.com/security/cve/CVE-2026-12151 REF https://bugzilla.redhat.com/show_bug.cgi?id=2489980 REF https://cna.openjsf.org/security-advisories.html REF https://github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12151.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy