CVE-2026-116689: follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects

Published Oct 27, 2026
·
Updated

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.

Affected Software

1 affected component
npm/follow-redirects>=1.16.0<1.16.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade follow-redirects to a version that resolves this vulnerability.

    Fixed in 1.16.2

Event History

Oct 27, 2026
CVE Published
via MITRE·07:38 PM
Data Sourced
via MITRE·07:38 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions are required for credential exposure?

The application must supply sensitiveHeaders as an array created in another JavaScript realm, include a custom credential header in that list, and follow an attacker-controlled cross-origin redirect. Under those conditions, the header can be forwarded to the redirect destination.

2

Are applications using the documented sensitiveHeaders option automatically protected?

Not if the option is passed as an array from another JavaScript realm. The affected check discards that array, leaving the custom headers it named unprotected during redirects.

3

What is the recommended remediation?

Upgrade follow-redirects to version 1.16.2, which fixes the issue.

4

How can I identify potentially affected usage?

Review use of follow-redirects from version 1.16.0 until the 1.16.2 fix, especially code that passes sensitiveHeaders across JavaScript realm boundaries and sends custom credential headers to endpoints that may redirect across origins.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203