Vulnerability in Undici Client Request Allowing HTTP Header Injection
CVE-2026-1527
4.6MEDIUM
What is CVE-2026-1527?
A vulnerability in the Undici HTTP client allows for user-controlled input to lead to HTTP header injection and request smuggling. By passing invalid characters through the upgrade option of client.request(), attackers can manipulate HTTP headers, potentially injecting arbitrary headers into requests. This opens pathways for terminating HTTP requests prematurely, allowing raw data to be sent to non-HTTP services such as Redis, Memcached, and Elasticsearch. The issue is tied to the lack of validation when writing the upgrade value directly to the socket, making it a significant concern for users of the Undici library.
Affected Version(s)
undici < 6.24.0; 7.0.0 < 7.24.0 < 6.24.0; 7.0.0 < 7.24.0
undici 6.24.0: 7.24.0
