Skip to main content

undici EUVDEUVD-2026-50409

| CVE-2026-13697 CRITICAL
Information Exposure (CWE-200)
2026-07-29 openjs GHSA-4cwx-7wf7-3272
9.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Upstream returns malformed private directive
  2. Delivery
    Response passes flawed shared-cache guard
  3. Exploit
    Stored in default shared cache
  4. Execution
    Second user hits same cache key
  5. Impact
    Private 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Jul 29, 2026 - 17:02 CVSS 7.4

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

undici 7.0.0 <7.29.0
undici 8.0.0 <8.9.0

Affected Packages

npm undici fix: 7.29.0, 8.9.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 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

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

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.4 HIGH

Primary rating from Vendor (openjs).

CVSS VectorNVD

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

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 14:29 vuln.today
v2 - CVSS changed
Severity Changed
Aug 04, 2026 - 14:23 NVD
HIGH CRITICAL
CVSS changed
Aug 04, 2026 - 14:23 NVD
7.4 (HIGH) 9.1 (CRITICAL)
Patch available
Jul 29, 2026 - 17:02 EUVD
CVE Published
Jul 29, 2026 - 16:32 cve.org
HIGH 7.4

DescriptionNVD

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
† 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

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Ubiquitous
undici is bundled in Node.js and backs global fetch; cache interceptor is opt-in
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-12151 HIGH POC
7.5 Jun 17

Memory exhaustion denial of service in the undici WebSocket client (versions 6.17.0 and later) allows a malicious or com

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

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