Intel

AIKIDO-2026-231269

follow-redirects is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

CVE-2026-111756Published Oct 7, 2026
October 7, 2026

58

CVE Score

Medium

Exposure of Sensitive Information to an Unauthorized Actor

Are you affected? Scan for Free

TL;DR

follow-redirects strips Authorization, Cookie, Proxy-Authorization, and any declared sensitiveHeaders before a redirect to a different host or a protocol downgrade by looping over the headers object with for...in in removeMatchingHeaders. When an application supplies headers as an array (the alternating name/value form Node's http.request also accepts), for...in yields numeric indices instead of header names, so the filter never matches and nothing is stripped. The request to the new destination still includes those credential headers, with no error or warning. The fix converts headers in array form to a plain object before the sensitive header filter runs.

How do I fix this?

Upgrade the follow-redirects library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you supply request headers as an array rather than a plain object while following redirects.

Versions

1.11.0 - 1.16.0

Fixed in 1.16.1

Background info

follow-redirects is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 1.11.0 - 1.16.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea