CVE-2026-1527
CVE-2026-1527 · undici is vulnerable to CRLF Injection via upgrade option
This page contains facts from public vulnerability sources. Check the original advisory before updating.
ImpactWhen an application passes user-controlled input to the upgrade option of client.request(), an attacker can inject CRLF sequences (\r\n) to: * Inject arbitrary HTTP headers * Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch) The vulnerability exists because undici writes the upgrade value directly to the socket without validating for invalid header characters: // lib/dispatcher/client-h1.js:1121 if (upgrade) { header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n` }
CVSS 4.6 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
undici
- Versions
- < 6.24.0; 7.0.0 < 7.24.0: Affected
- 6.24.0: 7.24.0: Not affected
No fix published
node-undici Debian:13
- Versions
- 7.15.0+dfsg+~cs3.2.0-1
- 7.15.0+dfsg+~cs3.2.0-3
- 7.16.0+dfsg+~cs3.2.0-1
- 7.16.0+dfsg+~cs3.2.0-2
- 7.18.2+dfsg+~cs3.2.0-1
- 7.24.5+dfsg+~cs3.2.0-1
- 7.24.6+dfsg+~cs3.2.0-1
- 7.24.6+dfsg+~cs3.2.0-2
- 7.24.6+dfsg+~cs3.2.0-3
- 7.3.0+dfsg1+~cs24.12.11-1
- 7.3.0+dfsg1+~cs24.12.11-2
- 8.10.2+dfsg+~cs3.2.2-1
- 8.5.0+dfsg+~cs3.2.0-1
- 8.5.0+dfsg+~cs3.2.0-2
- 8.5.0+dfsg+~cs3.2.0-3
- 8.9.0+dfsg+~cs3.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-undici Debian:14
- Versions
- 7.15.0+dfsg+~cs3.2.0-1
- 7.15.0+dfsg+~cs3.2.0-3
- 7.16.0+dfsg+~cs3.2.0-1
- 7.16.0+dfsg+~cs3.2.0-2
- 7.18.2+dfsg+~cs3.2.0-1
- 7.3.0+dfsg1+~cs24.12.11-1
- 7.3.0+dfsg1+~cs24.12.11-2
- Affected ranges
- ECOSYSTEM: < 7.24.5+dfsg+~cs3.2.0-1
Update to 7.24.5+dfsg+~cs3.2.0-1
undici npm
- Affected ranges
- SEMVER: < 6.24.0
Update to 6.24.0
undici npm
- Affected ranges
- SEMVER: ≥ 7.0.0, < 7.24.0
Update to 7.24.0
node-undici Ubuntu:24.04:LTS
- Versions
- 5.22.1+dfsg1+~cs20.10.10.2-1ubuntu1
- 5.26.3+dfsg1+~cs23.10.12-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-undici Ubuntu:25.10
- Versions
- 7.3.0+dfsg1+~cs24.12.11-1
- 7.3.0+dfsg1+~cs24.12.11-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-undici Ubuntu:26.10
- Versions
- 7.18.2+dfsg+~cs3.2.0-1build1
- 7.24.6+dfsg+~cs3.2.0-3
- 8.5.0+dfsg+~cs3.2.0-2
- 8.5.0+dfsg+~cs3.2.0-3
- 8.9.0+dfsg+~cs3.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-undici Ubuntu:26.04:LTS
- Versions
- 7.3.0+dfsg1+~cs24.12.11-2
- 7.16.0+dfsg+~cs3.2.0-2
- 7.18.2+dfsg+~cs3.2.0-1
- 7.18.2+dfsg+~cs3.2.0-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published