CVE-2026-18540
ADVISORY - githubSummary
Impact
Undici's interceptors.retry() can resume a request after a partial response and append the resumed bytes to an already partially delivered body, while the application still receives the original response's status and headers. When that response carried a Content-Length, the application can receive a longer body. Applications that forward Undici's status, headers, and body downstream without recalculating framing, for example proxy or gateway applications, may emit a response whose body exceeds the forwarded Content-Length, and the excess bytes can be read as the start of a subsequent HTTP response (downstream response splitting or desynchronization).
For example, a 404 Not Found with Content-Length: 2 that sends one byte then closes can be resumed with an open-ended Range request, and the resumed 206 Partial Content bytes are appended, so the application receives more than two body bytes while still seeing Content-Length: 2. The bug requires interceptors.retry() enabled, an attacker-controlled or faulty upstream, and a downstream forwarder that does not recalculate Content-Length.
Patches
Patched in undici v6.28.1, v7.29.1, and v8.10.2. Upgrade to one of these or later.
Workarounds
- Disable
interceptors.retry()for untrusted upstreams, or setmaxRetries: 0. - Remove or recalculate
Content-Lengthbefore forwarding a response body assembled by Undici.
Common Weakness Enumeration (CWE)
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
NIST
2.2
CVSS SCORE
3.7lowGitHub
2.2
CVSS SCORE
3.7lowDebian
-
Ubuntu
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighRed Hat
2.2
CVSS SCORE
3.7lowChainguard
CGA-5hjx-2w95-x322
-
Docker Hardened Images
2.2
CVSS SCORE
3.7lowminimos
MINI-2526-8vpg-2m9v
-
minimos
MINI-25rm-h2x3-ff2h
-
minimos
MINI-2xxw-7jvp-x8jq
-
minimos
MINI-6g4h-mjr8-fp9v
-
minimos
MINI-962f-xvpc-mgjj
-
minimos
MINI-9fq4-4hq5-pv42
-
minimos
MINI-9q58-g7xh-m5p8
-
minimos
MINI-c7pp-2j3g-w82x
-
minimos
MINI-fhj9-xh6v-x5r8
-
minimos
MINI-g2mj-f8h6-8c3f
-
minimos
MINI-g49j-h4rh-397g
-
minimos
MINI-j9x5-68jj-5368
-
minimos
MINI-m7fv-4p6m-v879
-
minimos
MINI-m7r7-7xpp-j9jf
-
minimos
MINI-m8qh-p4r8-fx65
-
minimos
MINI-mpcg-qf6r-2c4q
-
minimos
MINI-mx4r-87j2-9f4p
-
minimos
MINI-pq97-646j-35fh
-
minimos
MINI-qpr4-wf9m-44jp
-
minimos
MINI-v8qj-pj82-xhmp
-
minimos
MINI-vfch-6hx4-94x2
-
minimos
MINI-vqq2-p4mj-jxqm
-