CVE-2026-16728 Details
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.
A vulnerability in undici's retry interceptor can lead to downstream response desynchronization by allowing a response body length to mismatch the Content-Length header after a retry or resumption of a partial response. This issue is present in undici versions prior to 6.28.0, from 7.0.0 up to 7.29.0, and from 8.0.0 up to 8.9.0. The vulnerability arises when a malicious or faulty upstream sends a partial response with an incorrect Content-Length, closes the socket early, and the retry interceptor compensates by assembling a body of a different length while retaining the original Content-Length. Applications that utilize the retry interceptor and forward upstream headers and bodies downstream, such as proxies or gateways, may inadvertently send an invalid HTTP response with an outdated Content-Length. This can cause response desynchronization, connection hangs, or response corruption in downstream clients or intermediaries that depend on the forwarded framing metadata.
Users can upgrade to undici versions 6.28.0, 7.29.0, or 8.9.0, where this vulnerability has been patched. If an immediate upgrade is not possible, the retry interceptor can be disabled for untrusted upstreams, and the Content-Length header can be removed or recalculated before forwarding responses that have been assembled or transformed by undici.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Vendor Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-8xcm-r25x-g524 | openjs | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-444 | Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') | openjs |
Affected Products
| Product | Versions |
|---|---|
| nodejs undici | < 6.28.0 >= 7.0.0, < 7.29.0 >= 8.0.0, < 8.9.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | Initial Analysis | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 29, 2026 | New CVE Received | openjs |