CVE-2026-111756: follow-redirects Package Vulnerability Leading to Credential Leakage

follow-redirects Updated 20 Oct 2026

Summary

20/10/2026
Yes i
High
8.2

CVE-2026-111756: follow-redirects array-form headers bypass cross-origin credential stripping. Affects follow-redirects versions >= 1.16.0, < 1.16.1. Fixed in 1.16.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The follow-redirects package is a widely used Node.js library that simplifies the handling of HTTP redirects. It acts as a drop-in replacement for Node's native http.request, allowing developers to manage redirects seamlessly while maintaining control over HTTP headers. However, this package has a critical vulnerability that can lead to the unintended exposure of sensitive credential headers when following cross-origin redirects.

Vulnerability Detail

The vulnerability arises from the way follow-redirects handles HTTP headers, specifically when they are passed in an array format. The library is designed to strip sensitive headers such as Authorization, Proxy-Authorization, and Cookie when following redirects to different hosts or downgrading protocols. However, due to the use of a for...in loop, the removal routine fails to match header names when headers are provided as an array. As a result, sensitive headers are forwarded to potentially malicious destinations without any warning, leading to unauthorized access to user credentials. This issue is classified as an unauthenticated confidentiality vulnerability, allowing attackers to harvest sensitive information without requiring user interaction.

How To Fix

Latest published version: 1.16.1 as of 22 Oct 2026

npm install follow-redirects@1.16.1

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can avoid using array-form headers when making requests with the follow-redirects package. Instead, use an object to define headers, which will ensure that the sensitive headers are stripped correctly. For example:

const followRedirects = require('./index.js');
const http = require('http');

followRedirects.http.request({
  hostname: 'example.com',
  path: '/',
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Cookie': 'session=YOUR_SESSION_ID'
  }
}, function (res) {
  // Handle response
}).end();

Conclusion

The CVE-2026-111756 vulnerability in the follow-redirects package poses a significant risk by allowing sensitive credential headers to be leaked during cross-origin redirects. It is crucial for developers to update to the patched version and avoid using array-form headers to protect user credentials.

See every vulnerability recorded for follow-redirects →

Share this vulnerability

FAQ

CVE-2026-111756 is a vulnerability in the follow-redirects package that allows sensitive credential headers to be leaked when following cross-origin redirects.

If your application uses the follow-redirects package with array-form headers, it may inadvertently expose sensitive information such as Authorization and Cookie headers to attacker-controlled destinations.

You should update the follow-redirects package to version 1.16.1 or later to mitigate this vulnerability.

Yes, Vulert can monitor your project for open-source vulnerabilities in real-time using your package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground.

The CVSS score for CVE-2026-111756 is 8.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for follow-redirects.

How To Fix

Latest published version: 1.16.1 as of 22 Oct 2026

npm install follow-redirects@1.16.1

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback