Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim app opens EventSource to attacker-controlled SSE peer
-
DeliveryServer streams millions of tiny data fields or a split unfinished line
-
ExploitParser retains unbounded per-field/per-chunk state
-
ExecutionCompressed body expands past maxResponseSize checks
-
ImpactProcess memory exhausted, Node.js terminates
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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 | The affected application must actively instantiate and maintain an undici EventSource client connected to an untrusted or compromised Server-Sent Events peer whose response the attacker controls; this is the core prerequisite and is NOT a default posture for most undici/Node.js deployments, which primarily use undici for outbound fetch/HTTP rather than EventSource. The attacker needs no authentication and no victim user interaction once the connection exists, but cannot initiate the connection themselves - they only control the SSE response body. Vulnerable version ranges are undici 6.5.0-6.29.0, 7.0.0-7.30.0, and 8.0.0-8.12.1; there is no workaround, so the limiting factor is version plus EventSource usage against untrusted endpoints. The memory-exhaustion impact is amplified when the malicious response is compressed, because maxResponseSize is enforced on the compressed body before decompression. |
| Impact | Signals are consistent and point to a genuine but bounded availability risk rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) scores 7.5 HIGH and describes a network-reachable, low-complexity, unauthenticated condition with pure availability impact (C:N/I:N/A:H), which matches the description: a malicious or compromised SSE peer exhausts Node.js process memory via unbounded parser state (CWE-770). However, exploitation is gated by a specific precondition not reflected in the raw CVSS: the victim application must deliberately open an undici EventSource connection to a peer the attacker controls, so 'PR:N/UI:N' understates the real deployment prerequisite. Corroborating lower-urgency signals: EPSS is 0.31% (22nd percentile), the CVE is NOT on CISA KEV, and CISA SSVC assesses Exploitation=none, Automatable=no, Technical Impact=partial. There is no indication of public exploit code. Net: a legitimate denial-of-service worth patching on a normal cadence, not an actively-exploited critical. Note SSVC 'Technical Impact: partial' versus CVSS 'A:H' is a minor framing difference (SSVC partial reflects DoS-only, non-total-control impact) rather than a true conflict. |
| Exploit ScenarioDerived | A Node.js application uses undici's EventSource client to subscribe to a third-party or user-supplied Server-Sent Events endpoint. The attacker, controlling that endpoint's response, streams millions of tiny completed data fields with no blank separator (or one unfinished line split across many chunks), optionally compressed so a small compressed body expands past memory limits; the undici parser retains unbounded per-field/per-chunk state until the process runs out of memory and crashes. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Memory exhaustion in undici's EventSource client (versions 6.5.0 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1) allows a malicious or compromised Server-Sent Events peer to terminate a Node.js process by streaming millions of tiny completed data fields with no blank event separator, or a single unfinished line split across many chunks, so that per-field and per-chunk parser state grows without being bounded by maxEventSize or maxResponseSize. Remote attackers need no authentication and no victim interaction once the connection exists, but cannot initiate it themselves - the affected application must already maintain an EventSource connection to an untrusted endpoint, and because maxResponseSize is checked against the compressed body before decompression, a small gzip payload can expand into enough retained memory to crash the process (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5). Impact is availability only; no public exploit code exists at time of analysis, EPSS is 0.31% (22nd percentile), and CISA SSVC records Exploitation: none with Automatable: no, indicating a genuine but bounded risk rather than a top-tier emergency.
Earlier versions of this analysis (1)
Memory exhaustion in undici's EventSource client can allow a malicious or compromised Server-Sent Events peer to terminate a Node.js process by exploiting unbounded parser state accumulation. Affected versions are undici 6.5.0 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1; an application must already have an EventSource connection open to the hostile peer, and the attacker controls only the response body, requiring no authentication and no user interaction. The impact is availability only (CVSS 5.9, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H), no public exploit identified at time of analysis, and vendor-released patches are available in undici 6.29.1, 7.30.1, and 8.12.2.
RemediationAI
Vendor-released patch: upgrade undici to 6.29.1, 7.30.1, or 8.12.2 (or later), which bound retained parser state independently of maxEventSize and maxResponseSize; the advisory is at https://github.com/nodejs/undici/security/advisories/GHSA-4qv8-2p9j-2685 and the CNA index at https://cna.openjsf.org/security-advisories.html. Because undici ships inside Node.js, also move to a Node.js release that bundles a patched undici, or pin the dependency via an npm override/resolution if the bundled copy cannot be changed. The vendor states there is no workaround, so for systems that cannot upgrade immediately, compensating controls must be architectural: stop connecting EventSource to untrusted or attacker-influenceable endpoints or front such endpoints with a trusted proxy that re-emits validated, size- and line-bounded SSE streams (trade-off: added hop and full SSE semantics to re-implement); if EventSource is used only against a fixed set of known hosts, restrict egress so responses can come only from those hosts (trade-off: brittle as endpoints change, and it does not help when the peer itself is the compromise vector); reject or strip Content-Encoding on SSE responses at the proxy, since compression is what lets a small body inflate past maxResponseSize (trade-off: more bandwidth, and the uncompressed variant still crashes via the framing issue); and enforce a lower process memory ceiling such as --max-old-space-size so the worker is recycled and restarted rather than taking down the host (trade-off: crash-looping under sustained attack and loss of in-flight work). Monitoring heap growth on processes holding long-lived EventSource connections gives early warning, but does not remediate the issue.
Affected VersionsENISA
Affected Packages
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 HTTP/1.1 client library bundled with Node.js and widely used standalone for outbound fetch and streaming workloads; this flaw sits in its EventSource implementation, the client side of the WHATWG Server-Sent Events protocol. SSE framing is line-oriented: fields such as 'data:' are terminated by newlines and buffered until a blank line dispatches the event, and the parser normally guards memory with the byte-based maxEventSize and maxResponseSize limits. CWE-770 (Allocation of Resources Without Limits or Throttling) is the root cause class here: the vulnerable versions retain unbounded per-field bookkeeping for very many tiny completed data fields that are never separated by a blank line, and unbounded per-chunk partial-line state when a single line arrives fragmented across a large number of chunks - state that is not accounted for by the byte caps. The condition is aggravated by content encoding, because maxResponseSize is enforced on the compressed body prior to decompression, letting a compact gzip stream inflate into a much larger retained buffer. The fix in 6.29.1, 7.30.1 and 8.12.2 bounds the retained parser state independently of those byte limits. The CPE cpe:2.3:a:undici:undici:*:*:*:*:*:*:*:* is a wildcard and does not itself enumerate vulnerable versions, so version range pinning from the EUVD data (undici 6.5.0 <6.29.1, 7.0.0 <7.30.1, 8.0.0 <8.12.2) should be used for asset matching.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attacker-controlled SSE response reaches the client over the network with no auth or interaction once connected; impact is DoS only, so C:N/I:N/A:H with scope unchanged.
Primary rating from Vendor (openjs).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
undici is an HTTP client library for Node.js. In versions 6.5.0 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1, its EventSource client can be driven to exhaust process memory by a malicious or compromised Server-Sent Events peer. By sending millions of tiny completed data fields with no blank event separator, or a single unfinished line split across many chunks, the parser retains a growing amount of per-field and per-chunk state that the byte-based maxEventSize and maxResponseSize limits do not bound, and because maxResponseSize is enforced on the compressed body before decompression, a small compressed response can expand into enough retained memory to terminate the process. An application only needs to maintain an EventSource connection to an untrusted peer, which controls only the response, and availability is the only impact. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, which bound the retained parser state independently of the byte limits, and users should upgrade to one of those versions or later. There is no workaround.
Blast Radius
ecosystem impact- 3 npm packages depend on undici (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.5.0.
Technical POC Analysis
Class: CWE-770, Allocation of Resources Without Limits or Throttling — specifically unbounded parser-state accumulation in the undici EventSource (SSE) client.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Undici's EventSource client, used by Node.js services to consume server-sent events, can be driven into memory exhaustion by an untrusted event stream and crash the host process. The issue is remotely triggerable without credentials or user action once a service already holds an EventSource connection to an untrusted endpoint, so leadership should care about availability risk in consumer-facing, third-party-integrated, or mission-critical Node.js workloads. Impact is limited to service disruption, but affected teams should still prioritize remediation for internet-facing and business-critical SSE integrations.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forge
Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com
Cross-user information disclosure in undici's cache interceptor allows authenticated users' responses to be served from
Cookie attribute injection in undici's setCookie function allows attacker-controlled domain values or unparsed array ent
Authorization headers are cleared on cross-origin redirect. Rated medium severity (CVSS 6.5), this vulnerability is remo
`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to th
CRLF injection in undici's HTTP/1.1 dispatcher enables HTTP header injection and potential request smuggling when applic
Undici is an HTTP/1.1 client for Node.js. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable,
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` users are vulnerable to _CRLF Injection
Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions
Certificate pinning and custom TLS identity checks can be silently bypassed in undici versions 4.0.0 through 6.29.0, 7.0
Persistent cache poisoning and disclosure of user-specific responses affect undici 7.0.0 through 7.30.0 and 8.0.0 throug
EUVD-2026-102249
GHSA-4qv8-2p9j-2685
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB