Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. follow-redirects
  4. ›
  5. CVE-2026-111755

CVE-2026-111755: follow-redirects sensitiveHeaders regex escaping can expose credential headers

October 20, 2026

follow-redirects 1.16.0 introduced the sensitiveHeaders option (the fix for CVE-2026-40895 / GHSA-r4q5-vmmm-2653), which lets an application declare extra header names that must be removed when a redirect crosses to a different host or downgrades protocol. The filter is a single case-insensitive regular expression built by concatenating the declared header names into an alternation after passing each through escapeRegex. escapeRegex escapes only a partial set of metacharacters and leaves ^, |, [, {, and } unescaped. Header names may legitimately contain ^ and | (both are valid RFC 9110 token characters that Node accepts and sends), and for a declared name containing either, the generated pattern can never match the intended header. As a result, an application that adopts this option to protect a custom credential header, then follows an attacker-controlled cross-origin redirect, forwards that credential to the attacker with no error or warning, while believing it is protected. The failure is silent: the protection simply does not exist for the affected names. The built-in list (Authorization, Proxy-Authorization, Cookie) contains no metacharacters and is not affected by this defect.

References

  • github.com/advisories/GHSA-8r9p-f939-6h3c
  • github.com/follow-redirects/follow-redirects/commit/080a76d0e125b37bf81717368a61d5dc37aa56c8
  • github.com/follow-redirects/follow-redirects/releases/tag/v1.16.1
  • github.com/follow-redirects/follow-redirects/security/advisories/GHSA-8r9p-f939-6h3c
  • nvd.nist.gov/vuln/detail/CVE-2026-111755

Code Behaviors & Features

Detect and mitigate CVE-2026-111755 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.16.0 before 1.16.1

Fixed versions

  • 1.16.1

Solution

Upgrade to version 1.16.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-185: Incorrect Regular Expression
  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/follow-redirects/CVE-2026-111755.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:48 +0000.