npm
CVE-2026-116689
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
- Severity
- High 5.9
- Published
- 30 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.16.2
- Exploit chance
- 0.3% in the next 30 daysHigher than 18% of CVEs. EPSS by FIRST, 24 Nov 2026
- 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- Also known as
- GHSA-mrwp-f3q8-3g9p
- Sources
- OSV.dev and GitHub
Description
follow-redirects 1.16.0 and 1.16.1 validate the documented sensitiveHeaders option with instanceof Array. An array created in another JavaScript realm is silently replaced with an empty list, so a caller-declared custom credential header can be forwarded to an attacker-controlled cross-origin redirect destination.
Affected versions
The sensitiveHeaders option was introduced in 1.16.0. Published 1.16.0 and 1.16.1 both reproduced, giving a tested affected range of 1.16.0 through 1.16.1. The source checkout was pinned at revision 46301256333c90b7faac7aa126effe72ec16d16e; the exact npm 1.16.1 artifact reproduced independently.
Root cause
index.js resets options.sensitiveHeaders when its local isArray() helper returns false. That helper uses value instanceof Array, which depends on realm identity. The same file already uses Array.isArray(options.headers), which correctly recognizes arrays across realms.
Suggested remediation
Affected software
| Software | Affected versions |
|---|---|
follow-redirectsnpm · osv:npm:follow-redirects |
|
About follow-redirects
- Weekly downloads (npm)
- 148,175,424npm, 24 Nov 2026
Vulnerabilities in follow-redirects
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-111756follow-redirects array-form headers bypass cross-origin credential strippingHigh 20 Oct 2026
- CVE-2026-111755follow-redirects sensitiveHeaders regex escaping can expose credential headersHigh 20 Oct 2026
- CVE-2026-40895follow-redirects leaks Custom Authentication Headers to Cross-Domain Redirect TargetsMedium 14 Apr 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116689
- GitHub Advisory Database https://github.com/advisories/GHSA-mrwp-f3q8-3g9p