Skip to content
OpenAdvisories
Low · 3.7 CVE-2026-18540 EUVD-2026-71661GHSA-r53p-7pc4-xj5r

undici vulnerable to downstream response splitting via retry interceptor

Published Sep 4, 2026 · Updated Sep 4, 2026 · Assigned by openjs

Description

undici's retry interceptor can append the body of a ranged retry response to bytes already delivered from an earlier partial response while still presenting the original response's status and headers. This happens when an upstream server delivers part of a body without a trustworthy resume checkpoint, for example a non-success response whose headers were already sent or a partial-content response with an unusable content range, then closes the connection and answers the resumed range request with more bytes. As a result the response body can be longer than the Content-Length that the application observes. An application that relays such a response to a downstream HTTP/1.1 peer without normalizing the framing can emit a body that exceeds the forwarded Content-Length, and the excess bytes can be interpreted as the start of a following response, which enables downstream response splitting or desynchronization. Exploitation requires an attacker-controlled upstream server and an application that forwards the response through a framing-sensitive path. This affects undici versions before 6.28.1, from 7.0.0 up to 7.29.1, and from 8.0.0 up to 8.10.2. Users should upgrade to undici 6.28.1, 7.29.1, or 8.10.2.

Affected products

VendorProductAffectedFixed
undici undici < 6.28.1, 7.0.0 – < 7.29.1, 8.0.0 – < 8.10.2 6.28.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-undici 8.10.2+dfsg+~cs3.2.2-1 —
Debian 13 node-undici No fix yet —
Debian 12 node-undici No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-undici No fix yet —
Ubuntu 26.04 LTS node-undici No fix yet —
Ubuntu 24.04 LTS node-undici No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.10-0.2.hum1 RHSA-2026:66008
Red Hat Hardened Images 1 nodejs24 +5 24.21.0-1.hum1 RHSA-2026:71017
Red Hat Hardened Images 1 nodejs24-npm +1 11.19.0-1.24.21.0.1.hum1 RHSA-2026:71017
Red Hat Hardened Images 1 nodejs26 +6 26.8.2-0.1.hum1 RHSA-2026:66605
Red Hat Hardened Images 1 nodejs26-npm 11.19.1-1.26.8.2.0.1.hum1 RHSA-2026:66605

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs22 +4 1:22.23.3-1.amzn2023.0.1 ALAS2023-2026-3277
Amazon Linux 2023 nodejs22-npm 1:10.9.9-1.22.23.3.1.amzn2023.0.1 ALAS2023-2026-3277
Amazon Linux 2023 nodejs24 +4 1:24.21.0-1.amzn2023.0.1 ALAS2023-2026-3107
Amazon Linux 2023 nodejs24-npm 1:11.19.0-1.24.21.0.1.amzn2023.0.1 ALAS2023-2026-3107
Amazon Linux 2023 v8-12.4-devel 3:12.4.254.21-1.22.23.3.1.amzn2023.0.1 ALAS2023-2026-3277
Amazon Linux 2023 v8-13.6-devel 3:13.6.233.17-1.24.21.0.1.amzn2023.0.1 ALAS2023-2026-3107

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.139.1-r2 —
Wolfi rolling lerna 10.0.1-r11 —
Wolfi rolling prism 5.16.0-r14 —
Wolfi rolling renovate 44.131.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm undici < 6.28.1 6.28.1 GHSA-r53p-7pc4-xj5r
npm undici >= 7.0.0, < 7.29.1 7.29.1 GHSA-r53p-7pc4-xj5r
npm undici >= 8.0.0, < 8.10.2 8.10.2 GHSA-r53p-7pc4-xj5r

Advisories 6

References