CVE Catalog

CVE-2026-1527

MediumCVSS 4.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.32%

26th percentile - higher than 26% of all known CVEs

Summary

When 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 or terminate the HTTP request prematurely and smuggle raw data to non-HTTP services. undici writes the upgrade value directly to the socket without validating for invalid header characters.

Risk Assessment

An attacker can inject arbitrary HTTP headers or smuggle data to services such as Redis, Memcached, or Elasticsearch, potentially leading to unauthorized actions.

Recommendation

Upgrade undici to a patched version and avoid passing untrusted input to the upgrade option.

Other vulnerabilities in undici

See all
Original NVD description (English source)

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` }

Vulnerability data from NVD (NIST) · CISA KEV · EPSS