All vulnerabilities

npm

CVE-2026-120415

undici vulnerable to cross-origin credential disclosure via array-of-tuples headers bypassing redirect stripping

Severity
Medium 5.9
Published
6 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
7.30.2, 8.12.4
Exploit chance
0.4% in the next 30 daysHigher than 30% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure (CWE-200)CWE-212
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Sources
CVE Program

Description

undici is an HTTP client for Node.js. In versions 7.0.0 through 7.30.1 and 8.0.0 through 8.12.3, the redirect interceptor strips sensitive headers such as Authorization, Cookie, Proxy-Authorization, and Host when a request is redirected to a different origin, but when request headers are supplied as an array of name and value tuples (a valid documented input, for example from Object.entries), the redirect handler misreads them as a flat list so the header names never match and the sensitive headers are not removed. If a header-normalizing interceptor such as cache or deduplicate is composed outside the redirect interceptor, it then serializes the retained headers onto the cross-origin request, disclosing the caller's origin-bound credentials to the unrelated redirect destination. This is a representation-dependent bypass of the cross-origin header stripping added in CVE-2024-30260.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
undicinpm · osv:npm:undici
  • From 7.0.0 before 7.30.2
  • From 8.0.0 before 8.12.4

About undici

Weekly downloads (npm)
355,862,465npm, 22 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-120415