CVE-2026-18540
undici: undici: HTTP response splitting via retry interceptor
Overview
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.
Source: OX vulnerability database
Severity
3.7 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-444
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | <6.28.1>=7.0.0, <7.29.1>=8.0.0, <8.10.2 | 6.28.17.29.18.10.2 |
| 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 · 53 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:24.22.0-1.azl3 |
Red Hat 8 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | openshift4-ose-monitoring-plugin-rhel9 +1 | affected |
| 8 | openshift4-ose-monitoring-plugin-rhel9 +1 | affected |
| 8 (nodejs:22) | nodejs +10 | affected |
| 8 (nodejs:24) | nodejs +10 | affected |
| 9 | openshift4-ose-monitoring-plugin-rhel9 +1 | affected |
| 9 (nodejs:22) | nodejs +4 | affected |
2 more rows
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs22-npm | 1:10.9.9-1.22.23.3.1.amzn2023.0.1 |
| 2023 | nodejs24-npm | 1:11.19.0-1.24.21.0.1.amzn2023.0.1 |
| 2023 | nodejs22 +7 | 1:22.23.3-1.amzn2023.0.1 |
| 2023 | nodejs24 +7 | 1:24.21.0-1.amzn2023.0.1 |
| 2023 | v8-12-4-devel | 3:12.4.254.21-1.22.23.3.1.amzn2023.0.1 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.21.0.1.amzn2023.0.1 |
chainguard 1 release · 14 packages
| Release | Package | Fixed in |
|---|---|---|
| lerna | 10.0.1-r11 | |
| npm-11 | 11.20.0-r3 | |
| 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 |
8 more rows
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | affected |
| 14 | node-undici | 8.10.2+dfsg+~cs3.2.2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | affected |
minimos 1 release · 15 packages
| Release | Package | Fixed in |
|---|---|---|
| pi-cli | 0.86.0-r0 | |
| npm | 12.2.1-r0 | |
| node-gyp | 13.1.0-r0 | |
| nginx-proxy-manager-2 | 2.16.0-r0 | |
| n8n | 2.43.6-r0 | |
| homepage | 2.5.0-r0 |
9 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | affected |
wolfi 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| lerna | 10.0.1-r11 | |
| code-server | 4.139.1-r2 | |
| renovate | 44.133.0-r0 | |
| prism | 5.16.0-r14 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-18540
- 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/0160a719063fb0a77f4fdf9500b9166b91e14329
- github.com https://github.com/nodejs/undici/commit/cd8af90b38ae33c2838d54a2d629774122effe95
- github.com https://github.com/nodejs/undici/commit/ce31bc824b578008faae5d3350da66c1b5f71548
- github.com https://github.com/nodejs/undici/releases/tag/v6.28.1
- github.com https://github.com/nodejs/undici/releases/tag/v7.29.1
- github.com https://github.com/nodejs/undici/releases/tag/v8.10.2
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-r53p-7pc4-xj5r
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.