follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
Affects follow-redirectsSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium : upgrade to 1.16.2 when convenient.
Data as of 31 Oct 2026, 02:06 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.9 |
|---|
- Patch
- Available – fixed in 1.16.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade follow-redirects to 1.16.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmfollow-redirects | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in follow-redirects version 1.16.2. Users should upgrade to version 1.16.2 or later to resolve this issue. The remediation involves replacing the instanceof Array check with Array.isArray for validating sensitiveHeaders and properly normalizing header names.
Description
The follow-redirects library versions 1.16.0 and 1.16.1 contain a vulnerability where the sensitiveHeaders option is validated using instanceof Array, which fails for arrays created in different JavaScript realms. This causes the sensitiveHeaders array to be replaced with an empty list, allowing custom credential headers to be forwarded to attacker-controlled cross-origin redirect destinations. This can lead to disclosure of custom credential headers such as API keys. The issue is fixed in version 1.16.2.
References
- github.com/follow-redirects/follow-redirects/security/advisories/GHSA-mrwp-f3q8-3g9p (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-116689 (opens in a new tab)
- github.com/follow-redirects/follow-redirects/commit/b0a7751e9cd64cd8eeb6ec67d2f206a9cc88d3f8 (opens in a new tab)
- github.com/follow-redirects/follow-redirects (opens in a new tab)
- github.com/follow-redirects/follow-redirects/releases/tag/v1.16.2 (opens in a new tab)