Skip to main content

undici CVE-2026-16728

| EUVDEUVD-2026-50566 MEDIUM
HTTP Request/Response Smuggling (CWE-444)
2026-07-29 openjs GHSA-8xcm-r25x-g524
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Attacker controls or compromises upstream server
  2. Delivery
    Upstream returns partial body with mismatched Content-Length and drops socket
  3. Exploit
    Retry interceptor reconnects and appends continuation data
  4. Execution
    Assembled body length diverges from attached Content-Length header
  5. Persist
    Proxy forwards stale Content-Length to downstream client
  6. Impact
    Downstream HTTP parser desynchronizes, leaking or corrupting subsequent response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service HTTP request consistency
Exploitation Conditions

Exploitation requires all three of the following conditions to be present simultaneously: (1) the undici retry interceptor must be explicitly enabled in the application's undici configuration - it is not active by default in all deployment patterns; (2) the upstream server (attacker-controlled or attacker-compromised) must return a partial HTTP response with a deliberately mismatched Content-Length relative to the actual body bytes delivered before closing the socket; and (3) the undici-consuming application must act as a forwarding layer - a proxy, API gateway, or BFF - that passes upstream response headers including Content-Length to downstream clients without stripping or recalculating that header. Standalone applications that consume upstream responses internally and do not relay raw headers downstream are not exploitable via this path. Authentication is not a limiting factor because the attacker position is the upstream server, not a downstream client; CVSS PR:N reflects this. The attack is limited by the high coordination cost: the attacker must control or influence the upstream, cannot exploit this purely from a client position, and the downstream framing error only materializes in proxy-pattern deployments.

Impact

The NVD CVSS 3.1 score of 4.8 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) reflects realistic risk well: network-reachable but high-complexity due to the three required preconditions. EPSS data is not included in this dataset, so exploitation probability cannot be quantified. KEV status is negative and no POC has been identified, meaning real-world exploitation remains theoretical at time of analysis. The practical impact is bounded to proxy and gateway patterns - a standalone Node.js application that does not forward headers downstream is not meaningfully exposed. The combination of needing a controlled or compromised upstream, explicit retry interceptor activation, and a forwarding layer that omits Content-Length recalculation makes opportunistic mass exploitation unlikely. However, the vulnerability is architecturally significant for CDN edge proxies, API gateways, or BFF (Backend-for-Frontend) services built on undici, where the entire threat model centers on HTTP framing integrity. The C:L and I:L impact ratings are conservative but justified - data corruption and cross-client response leakage are realistic in desynchronized HTTP/1.1 pipelines.

Exploit ScenarioDerived

An attacker operating or compromising an upstream HTTP server targeted by a Node.js proxy built on undici sends a response with a mismatched Content-Length and Transfer-Encoding framing, then abruptly closes the TCP socket. The retry interceptor reconnects and appends the continuation data, reassembling a body whose actual byte count differs from the original Content-Length header. The proxy forwards the stale Content-Length downstream, causing a downstream HTTP/1.1 client to read into the next response's data or hang indefinitely waiting for bytes that will never arrive, potentially leaking a subsequent client's response to an earlier requestor. No public proof-of-concept code is known at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 29, 2026

Response body/Content-Length desynchronization in undici's retry interceptor allows a malicious or faulty upstream server to induce HTTP response smuggling against downstream clients of proxy and gateway applications. Affected versions span undici before 6.28.0, the 7.x line before 7.29.0, and the 8.x line before 8.9.0. An upstream that deliberately returns a partial response with mismatched framing and closes the socket early can cause the retry interceptor to assemble a body of a different length than the attached Content-Length, leading downstream consumers to experience response desynchronization, connection hangs, or data corruption. No public exploit has been identified at time of analysis, and this is not listed in CISA KEV.

RemediationAI

Upgrade undici to one of the fixed releases: 6.28.0 (for consumers on the 6.x line), 7.29.0 (for 7.x consumers), or 8.9.0 (for 8.x consumers). These versions are confirmed fixed per the OpenJSF advisory at https://github.com/nodejs/undici/security/advisories/GHSA-8xcm-r25x-g524. If an immediate upgrade is not feasible, the most targeted compensating control is to disable the retry interceptor in undici's configuration - this directly removes the vulnerable code path, though it eliminates automatic retry behavior and may increase error rates against flaky upstreams. A second mitigation for proxy or gateway deployments is to strip or recalculate the Content-Length header before forwarding downstream responses; this prevents the smuggling framing violation from propagating even if the retry interceptor assembles a mismatched body, though it does not fix the underlying desynchronization. Both workarounds carry operational trade-offs and should be treated as temporary measures pending upgrade.

Affected VersionsENISA

undici 8.0.0 <8.9.0
undici 7.0.0 <7.29.0
undici 0 <6.28.0

Affected Packages

npm undici fix: 6.28.0, 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 (CPE: cpe:2.3:a:undici:undici:*:*:*:*:*:*:*:*) is the high-performance HTTP/1.1 client library bundled with Node.js 18+ and widely adopted as a standalone npm package. Its retry interceptor is designed to transparently resume partial responses when an upstream connection drops mid-transfer. CWE-444 (Inconsistent Interpretation of HTTP Requests/Responses - HTTP Smuggling) identifies the root cause: the retry interceptor re-assembles the response body across reconnections but does not re-validate or recalculate the Content-Length header from the original response. When the upstream intentionally sends a Transfer-Encoding/Content-Length mismatch and drops the socket, the reassembled body can differ in length from the header the client application ultimately exposes. Applications that act as proxies or gateways - reading undici's response and forwarding raw headers and body downstream - will propagate the stale Content-Length, causing HTTP framing violations at the downstream layer consistent with classic response smuggling primitives.

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 MEDIUM
NVD 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 4.8 MEDIUM

AV:N because attacker operates an upstream server reachable over the network; AC:H for the three required co-conditions; C:L/I:L for downstream response leakage and corruption; A:N because availability impact is incidental and bounded.

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

Primary rating from Vendor (openjs).

CVSS VectorNVD

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

Lifecycle Timeline

3
CVSS changed
Aug 04, 2026 - 14:23 NVD
4.8 (MEDIUM) 6.5 (MEDIUM)
Patch available
Jul 29, 2026 - 22:02 EUVD
CVE Published
Jul 29, 2026 - 20:59 cve.org
MEDIUM 4.8

DescriptionNVD

undici's retry interceptor can deliver a response whose body length does not match the Content-Length header exposed to the application after a retry or resume of a partial response. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a malicious or faulty upstream can return a partial response with a mismatched framing header, close the socket early, and have the retry interceptor assemble a body of a different length while the original Content-Length stays attached. Applications that use the retry interceptor and forward upstream headers and bodies downstream, such as proxies or gateways, may then emit an invalid HTTP response with a stale Content-Length, leading to downstream response desynchronization, connection hangs, or response corruption. Exploitation requires the retry interceptor enabled, an upstream returning a mismatched partial response, and a downstream forwarder that does not remove or recalculate Content-Length. The issue is fixed in undici 6.28.0, 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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
default HTTP client bundled in Node.js 18+, widely used npm package
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

HTTP request smuggling exploits inconsistencies in how front-end and back-end servers parse HTTP message boundaries.

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 12 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

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