Sensitive Header Exposure in undici HTTP Client for Node.js
CVE-2026-120415

5.9MEDIUM

Key Information:

Vendor

Undici

Status
Vendor
CVE Published:
6 November 2026

What is CVE-2026-120415?

A vulnerability exists in undici, an HTTP client for Node.js, where the redirect interceptor fails to properly strip sensitive headers such as Authorization, Cookie, Proxy-Authorization, and Host when requests are redirected to a different origin. This issue arises specifically when request headers are supplied as an array of name and value tuples. The redirect handler incorrectly treats these headers as a flat list, preventing the intended header stripping from occurring. Consequently, if a header-normalizing interceptor is used outside the redirect interceptor, it can serialize retained headers onto a cross-origin request, thus exposing origin-bound credentials to unintended destinations. To mitigate this issue, users are advised to upgrade to the latest versions or alter their request headers to a flat name and value array. The vulnerability was addressed in versions 7.30.2 and 8.12.4.

Affected Version(s)

undici 7.0.0 < 7.30.2

undici 8.0.0 < 8.12.4

undici 7.30.2

References

CVSS V3.1

Score:
5.9
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

ffasterss
shirabe0x05
mcollina
UlisesGascon
.