Vulnerability
CVE-2026-16728
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.
99 advisories report this vulnerability, across 9 ecosystems.
Advisories in Wolfi
- CGA-2869-jmhq-75g2
- CGA-3q9v-j9f3-q762
- CGA-436m-g455-7xj4
- CGA-48xw-5qg9-vfp2
- CGA-4948-h783-7fcf
- CGA-4w28-92jj-9xj6
- CGA-58p9-942w-87gm
- CGA-6658-g8xg-p7fx
- CGA-6mx5-c66h-9hp8
- CGA-6r6q-84gj-w6cj
- CGA-766g-w3g7-567f
- CGA-8cqj-9r34-v994
- CGA-8m44-4q6c-pq4r
- CGA-8whv-xjw9-ffv8
- CGA-9cvm-9xf3-pmmg
- CGA-c7x2-rh7g-3h97
- CGA-cpqv-4p4r-hxwp
- CGA-fcgq-j92f-vcfg
- CGA-fj5h-h388-cqvx
- CGA-g959-prhf-qwrg
- CGA-j5gg-fpcp-cvwr
- CGA-j8xq-25wr-cpgx
- CGA-jch6-8rgg-6pr3
- CGA-m43r-r63r-jgr2
- CGA-mjwj-p98j-hjmh
- CGA-q5cq-27mp-868m
- CGA-w834-766r-347c
- CGA-wp2f-768r-4q4r