CVE-2026-116689
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.9
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
CVE-2026-116689- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-201
- Updated
- 2026-11-02
EUVDEUVD-2026-111363
5.9
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
EUVD-2026-111363- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-mrwp-f3q8-3g9p
8.2
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
Summary
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.
Details
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
Use Array.isArray(value) for sensitiveHeaders, then validate and normalize each member as a header-name string. Add same-realm and node:vm cross-realm tests for cross-origin redirects, including the array-form headers representation. Verify that custom sensitive names are removed while unrelated headers remain unchanged.
Duplicate review
The public advisory history contains other sensitive-header findings, including array-form headers and regular-expression handling, but focused repository searches found no report describing cross-realm validation as of 2026-10-25. A private or differently worded report may already exist.
Proof of concept
Start two loopback HTTP servers. The first returns a 302 redirect to the second. Send X-API-Key and list that name in sensitiveHeaders, then compare a normal array with a genuine cross-realm array created by:
const vm = require('node:vm');
const sensitiveHeaders = vm.runInNewContext(`['X-API-Key']`);
Observed against both source and the exact npm 1.16.1 package:
- Same-realm ['X-API-Key']: the redirect target did not receive the key.
- Cross-realm ['X-API-Key']: Array.isArray(value) was true, value instanceof Array was false, and the redirect target received X-API-Key.
- An unrelated X-Harmless header remained present in both cases.
The complete 3.5 KB loopback-only harness and raw JSON output are available privately.
Impact
custom credential disclosure. Exploitation requires a direct caller or wrapper that preserves a cross-realm sensitiveHeaders array, a custom credential listed in that option, and an attacker-controlled or compromised endpoint that returns a cross-origin redirect. The directly demonstrated result is disclosure of the custom header value, potentially exposing an API key or service token until revocation.
Built-in Authorization, Proxy-Authorization, and Cookie protections remained effective. Exact Axios 1.20.0 with follow-redirects 1.16.1 did not reproduce because Axios normalized the array; this report does not claim that Axios is affected. No third-party service was tested.
- Record
GHSA-mrwp-f3q8-3g9p- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-201
- Updated
- 2026-11-02
NVD
5.9
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
CVE-2026-116689- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-201
- Updated
- 2026-11-02
OSV
5.9
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
CVE-2026-116689- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-201
- Updated
- 2026-11-06
OSVDEBIAN-CVE-2026-116689
5.9
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
DEBIAN-CVE-2026-116689- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 10 moreShow less
OSVGHSA-mrwp-f3q8-3g9p
8.2
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
Summary
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.
Details
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
Use Array.isArray(value) for sensitiveHeaders, then validate and normalize each member as a header-name string. Add same-realm and node:vm cross-realm tests for cross-origin redirects, including the array-form headers representation. Verify that custom sensitive names are removed while unrelated headers remain unchanged.
Duplicate review
The public advisory history contains other sensitive-header findings, including array-form headers and regular-expression handling, but focused repository searches found no report describing cross-realm validation as of 2026-10-25. A private or differently worded report may already exist.
Proof of concept
Start two loopback HTTP servers. The first returns a 302 redirect to the second. Send X-API-Key and list that name in sensitiveHeaders, then compare a normal array with a genuine cross-realm array created by:
const vm = require('node:vm');
const sensitiveHeaders = vm.runInNewContext(`['X-API-Key']`);
Observed against both source and the exact npm 1.16.1 package:
- Same-realm ['X-API-Key']: the redirect target did not receive the key.
- Cross-realm ['X-API-Key']: Array.isArray(value) was true, value instanceof Array was false, and the redirect target received X-API-Key.
- An unrelated X-Harmless header remained present in both cases.
The complete 3.5 KB loopback-only harness and raw JSON output are available privately.
Impact
custom credential disclosure. Exploitation requires a direct caller or wrapper that preserves a cross-realm sensitiveHeaders array, a custom credential listed in that option, and an attacker-controlled or compromised endpoint that returns a cross-origin redirect. The directly demonstrated result is disclosure of the custom header value, potentially exposing an API key or service token until revocation.
Built-in Authorization, Proxy-Authorization, and Cookie protections remained effective. Exact Axios 1.20.0 with follow-redirects 1.16.1 did not reproduce because Axios normalized the array; this report does not claim that Axios is affected. No third-party service was tested.
- Record
GHSA-mrwp-f3q8-3g9p- CVSS 4.0
- 8.2 High
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-201
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-116689
5.9
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.2, the documented sensitiveHeaders option is checked with value instanceof Array, so an array created in another JavaScript realm is replaced with an empty list even though Array.isArray recognizes it. When a request then follows an attacker-controlled cross-origin redirect, a custom credential header named in that discarded list can be forwarded to the redirect destination. This issue is fixed in version 1.16.2.
- Record
UBUNTU-CVE-2026-116689- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1793790104 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.11-tuxcare.5.
- Record
CLSA-2026-1793790104- Updated
- 2026-11-04
OSVCLSA-2026-1793801934 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.9-tuxcare.2.
- Record
CLSA-2026-1793801934- Updated
- 2026-11-04
OSVCLSA-2026-1793808705 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.6-tuxcare.3.
- Record
CLSA-2026-1793808705- Updated
- 2026-11-04
OSVCLSA-2026-1793813951 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.5-tuxcare.3.
- Record
CLSA-2026-1793813951- Updated
- 2026-11-05
OSVCLSA-2026-1793828720 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.3-tuxcare.2.
- Record
CLSA-2026-1793828720- Updated
- 2026-11-05
OSVCLSA-2026-1793874839 No score
TuxCare security update for follow-redirects (1 CVE)
TuxCare rebuilt follow-redirects to address 1 CVE. Fixed in 1.15.2-tuxcare.4.
- Record
CLSA-2026-1793874839- Updated
- 2026-11-05
OSVopenSUSE-SU-2026:12424-1 No score
agama-web-ui-25+475.275dd4727-56.1 on GA media
These are all security issues fixed in the agama-web-ui-25+475.275dd4727-56.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:12424-1- Updated
- 2026-11-06
OSVROOT-APP-NPM-CVE-2026-116689 No score
CVE-2026-116689 in follow-redirects - Patched by Root
Root has patched CVE-2026-116689 in the follow-redirects package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2026-116689- Updated
- 2026-11-06
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
follow-redirectsnpm |
1.16.0 to 1.16.1 | 1.16.2 |
follow-redirectsTuxCare:npm |
1.15.11-tuxcare.0 up to 1.15.11-tuxcare.5, plus listed versions 1.15.111.15.11-tuxcare.11.15.11-tuxcare.21.15.11-tuxcare.31.15.11-tuxcare.4 |
1.15.11-tuxcare.5 |
follow-redirectsTuxCare:npm |
1.15.9-tuxcare.0 up to 1.15.9-tuxcare.2, plus listed versions 1.15.91.15.9-tuxcare.1 |
1.15.9-tuxcare.2 |
follow-redirectsTuxCare:npm |
1.15.6-tuxcare.0 up to 1.15.6-tuxcare.3, plus listed versions 1.15.61.15.6-tuxcare.11.15.6-tuxcare.2 |
1.15.6-tuxcare.3 |
follow-redirectsTuxCare:npm |
1.15.5-tuxcare.0 up to 1.15.5-tuxcare.3, plus listed versions 1.15.51.15.5-tuxcare.11.15.5-tuxcare.2 |
1.15.5-tuxcare.3 |
follow-redirectsTuxCare:npm |
1.15.3-tuxcare.0 up to 1.15.3-tuxcare.2, plus listed versions 1.15.31.15.3-tuxcare.1 |
1.15.3-tuxcare.2 |
follow-redirectsTuxCare:npm |
1.15.2-tuxcare.0 up to 1.15.2-tuxcare.4, plus listed versions 1.15.21.15.2-tuxcare.11.15.2-tuxcare.21.15.2-tuxcare.3 |
1.15.2-tuxcare.4 |
node-follow-redirectsDebian:12 |
All versions, plus listed versions 1.15.11+~1.14.4-11.15.11+~1.14.4-21.15.2+~1.14.1-11.15.3+~1.14.2-11.15.6+~1.14.4-1 Show 5 moreShow less1.15.6+~1.14.4-21.15.9+~1.14.4-11.16.0+~1.14.4-11.16.0+~1.14.4-21.16.1+~1.14.4-1 |
None known |
node-follow-redirectsDebian:13 |
All versions, plus listed versions 1.15.11+~1.14.4-11.15.11+~1.14.4-21.15.9+~1.14.4-11.16.0+~1.14.4-11.16.0+~1.14.4-21.16.1+~1.14.4-1 |
None known |
node-follow-redirectsDebian:14 |
All versions, plus listed versions 1.15.11+~1.14.4-11.15.11+~1.14.4-21.15.9+~1.14.4-11.16.0+~1.14.4-11.16.0+~1.14.4-21.16.1+~1.14.4-1 |
None known |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
follow-redirectsnpm |
1.16.0 up to 1.16.2 | 1.16.2 |
follow-redirectsRoot:npm |
before 1.16.0-aikido.2 | 1.16.0-aikido.21.16.1-aikido.1 |
@rootio/follow-redirectsRoot:npm |
before 1.16.0-root.io.2 | 1.16.0-root.io.21.16.1-root.io.1 |
node-follow-redirectsUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.2.4-11.2.4-1ubuntu0.18.04.1~esm11.2.4-1ubuntu0.18.04.1~esm2 |
None known |
node-follow-redirectsUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.2.4-11.2.4-1ubuntu0.20.04.1~esm11.2.4-1ubuntu0.20.04.1~esm2 |
None known |
node-follow-redirectsUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 1.13.1-11.14.5-11.14.7+~1.13.1-11.14.8+~1.14.0-11.14.9+~1.14.1-11.14.9+~1.14.1-1ubuntu0.1~esm11.14.9+~1.14.1-1ubuntu0.1~esm2 |
None known |
node-follow-redirectsUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 1.15.2+~1.14.1-11.15.3+~1.14.2-11.15.6+~1.14.4-11.15.6+~1.14.4-1ubuntu0.1~esm1 |
None known |
node-follow-redirectsUbuntu:26.10 |
All versions, plus listed versions 1.15.11+~1.14.4-1build11.16.0+~1.14.4-2 |
None known |
node-follow-redirectsUbuntu:Pro:26.04:LTS |
All versions, plus listed versions 1.15.9+~1.14.4-11.15.11+~1.14.4-1build11.15.11+~1.14.4-1ubuntu0.1~esm1 |
None known |
agama-web-uiopenSUSE:Tumbleweed From an advisory covering 11 CVEs |
before 25+475.275dd4727-56.1 | 25+475.275dd4727-56.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| affected | OSV | |
| affected, aliases | OSV | |
| affected, aliases | OSV | |
| affected, aliases | OSV | |
| affected, aliases, facts | OSV | |
| affected, aliases | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-116689 is a medium vulnerability (CVSS 5.9) in Follow-redirects, published October 27, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 18th percentile. Fixed in follow-redirects 1.16.2.
References
github.com/follow-redirects/follow-redirects/security/advisories/GHSA-mrwp-f3q8-3g9p
github.com/follow-redirects/follow-redirects/commit/b0a7751e9cd64cd8eeb6ec67d2f206a9cc88d3f8
github.com/follow-redirects/follow-redirects/releases/tag/v1.16.2
nvd.nist.gov/vuln/detail/CVE-2026-116689
github.com/advisories/GHSA-mrwp-f3q8-3g9p
github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116689.json
Show 15 moreShow less
security-tracker.debian.org/tracker/CVE-2026-116689
github.com/follow-redirects/follow-redirects
ubuntu.com/security/CVE-2026-116689
cve.org/CVERecord?id=CVE-2026-116689
suse.com/security/cve/CVE-2026-102277
suse.com/security/cve/CVE-2026-110725
suse.com/security/cve/CVE-2026-111181
suse.com/security/cve/CVE-2026-111755
suse.com/security/cve/CVE-2026-111756
suse.com/security/cve/CVE-2026-115754
suse.com/security/cve/CVE-2026-115897
suse.com/security/cve/CVE-2026-116689
suse.com/security/cve/CVE-2026-75899
suse.com/security/cve/CVE-2026-84369
suse.com/security/cve/CVE-2026-86472