CVE-2026-16728
undici: undici: Response desynchronization via retry interceptor with mismatched Content-Length
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness: CWE-444
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | <6.28.0>=7.0.0, <7.29.0>=8.0.0, <8.9.0 | 6.28.07.29.08.9.0 |
| Seal npm | @seal-security/undici | >=4.16.0-sp1, <4.16.0-sp999>=6.21.1-sp1, <6.21.1-sp999>=6.23.0-sp1, <6.23.0-sp2>=7.18.2-sp1, <7.18.2-sp999>=7.19.2-sp1, <7.19.2-sp2p2+1 more | 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2 |
| Seal npm | undici | >=4.16.0-sp0, <4.16.0-sp999>=6.21.1-sp0, <6.21.1-sp999>=6.23.0-sp0, <6.23.0-sp2>=7.18.2-sp0, <7.18.2-sp999>=7.19.2-sp0, <7.19.2-sp2p2+1 more | 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2 |
Open a package to see all its vulnerabilities.
Operating systems · 62 fixes
SUSE Linux Enterprise 4 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | nodejs18 +3 | 18.20.8-8.44.1 | SUSE-SU-2026:4248-1 |
| 15.4 | nodejs18 +3 | 18.20.8-150400.9.39.1 | SUSE-SU-2026:4261-1 |
| 15.5 | nodejs18 +3 | 18.20.8-150400.9.39.1 | SUSE-SU-2026:4261-1 |
| 15.5 | nodejs20 +3 | 20.20.2-150500.11.30.1 | SUSE-SU-2026:3930-1 |
| 15.6 | nodejs20 +3 | 20.20.2-150600.3.21.1 | SUSE-SU-2026:3929-1 |
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs22-npm | 1:10.9.8-1.22.23.2.1.amzn2023.0.2 |
| 2023 | nodejs24-npm | 1:11.16.0-1.24.18.1.1.amzn2023.0.2 |
| 2023 | nodejs22 +7 | 1:22.23.2-1.amzn2023.0.2 |
| 2023 | nodejs24 +7 | 1:24.18.1-1.amzn2023.0.2 |
| 2023 | v8-12-4-devel | 3:12.4.254.21-1.22.23.2.1.amzn2023.0.2 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.18.1.1.amzn2023.0.2 |
chainguard 1 release · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| saf | 1.7.0-r0 | |
| npm-12 | 12.0.2-r2 | |
| commercial-gitlab-rails-ee-19-1 | 19.1.7-r3 | |
| commercial-gitlab-rails-ee-fips-19-1 | 19.1.9-r0 | |
| commercial-gitlab-rails-ee-19-2 +1 | 19.2.7-r1 | |
| commercial-gitlab-rails-ee-19-3 +1 | 19.3.3-r1 |
15 more rows
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | affected |
| 14 | node-undici | 8.9.0+dfsg+~cs3.2.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 7.3.0+dfsg1+~cs24.12.11-1+e1 |
minimos 1 release · 17 packages
| Release | Package | Fixed in |
|---|---|---|
| grist | 1.7.18-r0 | |
| npm | 12.0.2-r1 | |
| node-gyp | 13.0.2-r0 | |
| nginx-proxy-manager-2 | 2.16.0-r0 | |
| n8n | 2.36.6-r0 | |
| uptime-kuma-2-5 | 2.5.3-r0 |
11 more rows
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack24 +4 | 24.22.3-1.1 | openSUSE-SU-2026:12570-1 |
wolfi 1 release · 8 packages
| Release | Package | Fixed in |
|---|---|---|
| saf | 1.7.0-r0 | |
| npm-12 | 12.0.2-r2 | |
| vitess-24 | 24.0.3-r7 | |
| langfuse-3 | 3.225.7-r6 | |
| pulumi | 3.256.0-r1 | |
| code-server | 4.130.0-r5 |
2 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-16728
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/1b5a5312c3a7d7a30c31bf0d000b39a8a2531e1c
- github.com https://github.com/nodejs/undici/commit/2b3f749336d356bbbc50192f87f6cf7bc714721a
- github.com https://github.com/nodejs/undici/commit/4a9dafb16ff43880cf590e6d9c2aeee25fbff6d7
- github.com https://github.com/nodejs/undici/commit/4fd5a0c61e627f928b7003adc4ffe1e55ec63420
- github.com https://github.com/nodejs/undici/commit/cba3a52ac2e7abcc4e656d82af8579ea82c2bb9e
- github.com https://github.com/nodejs/undici/commit/e11a68ed4ff345c79402476f7a00d473443e318d
- github.com https://github.com/nodejs/undici/releases/tag/v6.28.0
Show all 16 references
- github.com https://github.com/nodejs/undici/releases/tag/v7.29.0
- github.com https://github.com/nodejs/undici/releases/tag/v8.9.0
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-8xcm-r25x-g524
- hackerone.com https://hackerone.com/reports/3828685
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-16728
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-16728
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.