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.
- CVSS
- 6.5Medium
- Chance of exploitation (EPSS)
- —
- Published
- Jul 29, 2026
- In the news
- Not yet
What to do
A moderate security flaw in Nodejs Undici that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 6.28.0, 7.29.0, 8.9.0
Affected versions
- Undici
- Before 6.28.0; 7.0.0 to before 7.29.0; 8.0.0 to before 8.9.0
Description
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.
Affected products
Get alerts for these →Timeline 6
Latest change: Tenable Cloud Security plugin 491547: Chainguard: actions-runner: security update to 2.336.0-r5multiple code-server packages: security update to 4.130.0-r5commercial-gitlab-rails-ee-19.1: security update to 19.1.7-r3multiple commercial-gitlab-rails-ee-19.2 packages: security update to 19.2.7-r1multiple commercial-gitlab-rails-ee-19.3 p… (Dec 1, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Dec 2, 2026
- DetectionTenable Cloud Security plugin 491547: Chainguard: actions-runner: security update to 2.336.0-r5multiple code-server packages: security update to 4.130.0-r5commercial-gitlab-rails-ee-19.1: security update to 19.1.7-r3multiple commercial-gitlab-rails-ee-19.2 packages: security update to 19.2.7-r1multiple commercial-gitlab-rails-ee-19.3 p…Tenable
- DetectionTenable Container Security plugin 491547: Chainguard: actions-runner: security update to 2.336.0-r5multiple code-server packages: security update to 4.130.0-r5commercial-gitlab-rails-ee-19.1: security update to 19.1.7-r3multiple commercial-gitlab-rails-ee-19.2 packages: security update to 19.2.7-r1multiple commercial-gitlab-rails-ee-19.3 p…Tenable
Tue, Nov 24, 2026
Sun, Nov 1, 2026
Wed, Jul 29, 2026
- CVECVE-2026-16728 published (CVSS 6.5)CVE Program · 21:17 UTC
References 2
- cna.openjsf.org Vendor Advisory /security-advisories.html
- github.com MitigationVendor Advisory /nodejs/undici/security/advisories/GHSA-8xcm-r25x-g524