Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUpstream returns malformed private directive
-
DeliveryResponse passes flawed shared-cache guard
-
ExploitStored in default shared cache
-
ExecutionSecond user hits same cache key
-
ImpactPrivate body and Set-Cookie served cross-user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the undici cache interceptor (interceptors.cache()) running in shared mode - which is the default - with no separating Vary header to distinguish users on the same cache key. For the disclosure path, an upstream must return a degenerate qualified private directive such as private="", private=",", or private=" ", and a second request must later match the same cache key. For the crash path, an upstream must return a header combining an unqualified private with a qualified private="..." (e.g. public, max-age=60, private, private="hdr"). Limiting factors: the attacker generally does not control the upstream's Cache-Control header, exploitation depends on cache-key collisions between different callers, applications using type: 'private' or no cache interceptor are unaffected, and the process-termination outcome depends on the consumer's error handling. |
| Impact | Signals are mixed and warrant nuance. CVSS 3.1 is 9.1 (AV:N/AC:L/PR:N/UI:N/C:H/A:H), but that high score reflects impact (private data leakage plus process crash) more than attacker control: exploitation depends on an upstream origin emitting a malformed Cache-Control directive and on a cache-key collision without a separating Vary header - conditions the external attacker usually cannot force directly, which realistically raises attack complexity above the AC:L in the published vector. SSVC agrees with limited urgency: Exploitation=none, Automatable=no, Technical Impact=total. EPSS is low at 0.27% (19th percentile) and the CVE is not in CISA KEV, so this is not evidence of active or widespread exploitation. The genuine priority driver is prevalence and blast radius: undici is nearly ubiquitous in Node.js estates, and shared mode is the default, so the disclosure of Set-Cookie/session material across users is a serious confidentiality event where the pattern occurs. Net: patch promptly for anything using interceptors.cache(), but treat this as a correctness/data-segregation defect to remediate rather than an imminent mass-exploitation threat. |
| Exploit ScenarioDerived | An application fronts an authenticated upstream with undici's shared cache interceptor; the upstream returns Cache-Control: public, max-age=300, private="" on a per-user response carrying Set-Cookie: session=secret. undici caches it, and the next user requesting the same path with the same cache key receives the first user's session cookie and body. Alternatively, an upstream returns public, max-age=60, private, private="hdr", triggering an uncaught TypeError that rejects the request and, depending on the app's error handling, terminates the Node.js process. No public PoC is published, though the fix commit includes reproducing tests. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
Cross-user information disclosure and a parse-time denial of service in undici's HTTP cache interceptor affect versions 7.0.0-7.28.x and 8.0.0-8.8.x when the interceptor runs in shared mode (the default). A response bearing a degenerate qualified private directive (e.g. private="") slips past the shared-cache guard and is later served to a different caller sharing the same cache key, leaking private bodies and headers including Set-Cookie; separately, mixing an unqualified and a qualified private directive throws an uncaught TypeError that can crash the process. No public exploit identified at time of analysis, and EPSS is low (0.27%), but the fix is confirmed in undici 7.29.0 and 8.9.0.
Earlier versions of this analysis (1)
Private response disclosure and denial of service in undici, the HTTP/1.1 client that backs Node.js's global fetch, affects versions 7.0.0 to before 7.29.0 and 8.0.0 to before 8.9.0 when the cache interceptor runs in shared mode (the default). A response carrying a malformed qualified private Cache-Control directive (e.g. private set to an empty value) is wrongly stored in the shared cache and later served to a different caller sharing the same cache key, leaking private bodies and headers including Set-Cookie; separately, a header mixing an unqualified private directive with a qualified one raises an uncaught TypeError that can terminate the process. No public exploit identified at time of analysis; unauthenticated per the CVSS PR:N vector.
RemediationAI
Vendor-released patch: undici 7.29.0 (for the 7.x line) and 8.9.0 (for the 8.x line) - upgrade to whichever matches your major version; both apply the same fix to lib/util/cache.js (commit 4fe5bc5fefe5ac81a200fc8e1cf84b8bf8464451, releases https://github.com/nodejs/undici/releases/tag/v7.29.0 and https://github.com/nodejs/undici/releases/tag/v8.9.0). If you cannot upgrade immediately, the vendor's workarounds are: stop using a shared interceptors.cache() for user-specific responses; instantiate the cache interceptor with type: 'private' so responses are not shared across callers (trade-off: loses cross-client cache reuse and its performance benefit); or disable the cache interceptor entirely (trade-off: removes caching and increases origin load). Also review advisory GHSA-4cwx-7wf7-3272 and confirm upstream responses are not emitting malformed Cache-Control directives.
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 high-performance HTTP/1.1 client that ships bundled inside Node.js and backs the global fetch() API, so the affected code is the caching layer exposed via interceptors.cache(). The root cause (CWE-200, Exposure of Sensitive Information) lives in the Cache-Control parser in lib/util/cache.js. Per RFC 7234, a qualified private directive (private="field-name") restricts only the named header fields, whereas an unqualified private applies to the whole response and must never enter a shared cache. undici's parser stored private="" as { private: [''] } - an array rather than the boolean true - and the shared-cache guard only rejected private === true, so the malformed-but-effectively-unqualified response was cached and reused. The crash variant arises because an unqualified private first sets output.private = true, then a following qualified private="hdr" calls output.private.concat(...), which throws TypeError: output.private.concat is not a function since booleans have no concat method.
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:H/I:N/A:H
AC:H because exploitation needs a malformed upstream directive plus a cache-key collision the attacker cannot force; S:C as one user's data crosses to another; C:H (Set-Cookie leak) and A:H (process crash).
Primary rating from Vendor (openjs).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
undici's cache interceptor mishandles malformed Cache-Control private directives. In undici 7.0.0 up to before 7.29.0 and 8.0.0 up to before 8.9.0, a response carrying a degenerate qualified private directive, such as private set to an empty value, can be stored in the default shared cache and later served to a different caller with the same cache key, disclosing private response bodies and headers including Set-Cookie. Separately, a Cache-Control header that combines an unqualified private directive with a qualified one triggers an uncaught TypeError in the cache-control parser, which rejects the request and, depending on the consumer's error handling, can terminate the process. Both issues affect applications using the cache interceptor in shared mode, including the default configuration. The issues are fixed in undici 7.29.0 and 8.9.0.
Blast Radius
ecosystem impact- 28 npm packages depend on undici (16 direct, 23 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Executive ViewAI
Undici, a widely-deployed HTTP client library, contains a critical cache-poisoning vulnerability (CVSS 9.1) affecting versions 7.0.0-7.28.x and 8.0.0-8.8.x in its default shared-cache configuration. The flaw permits attackers to retrieve private HTTP headers and response bodies-including session cookies-belonging to other users sharing the same cache instance, enabling session hijacking and customer data theft. Any organization running affected versions requires immediate remediation to prevent credential compromise and regulatory violations.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
TLS certificate validation bypass in undici's BalancedPool dispatcher silently discards function-valued options - includ
EUVD-2026-50409
GHSA-4cwx-7wf7-3272
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB