---
id: CVE-2026-111755
title: follow-redirects sensitiveHeaders regex escaping can expose credential headers
summary: >-
  follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically
  follows redirects. From 1.16.0 until 1.16.1, escapeRegex leaves valid
  header-name metacharacters unescaped in sensitiveHeaders. When an application
  declares a…
severity: high
cvss: 8.2
cvssVector: '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'
cvssSource: cna
cwe:
  - CWE-185
  - CWE-200
vendor: follow-redirects
product: follow-redirects
affected:
  - 'follow-redirects >= 1.16.0, < 1.16.1'
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-19T17:59:27.677540Z'
exploitAvailable: true
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T18:00:16.343Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-111755'
references:
  - url: >-
      https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-8r9p-f939-6h3c
    label: >-
      https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-8r9p-f939-6h3c
  - url: >-
      https://github.com/follow-redirects/follow-redirects/commit/080a76d0e125b37bf81717368a61d5dc37aa56c8
    label: >-
      https://github.com/follow-redirects/follow-redirects/commit/080a76d0e125b37bf81717368a61d5dc37aa56c8
  - url: 'https://github.com/follow-redirects/follow-redirects/releases/tag/v1.16.1'
    label: 'https://github.com/follow-redirects/follow-redirects/releases/tag/v1.16.1'
tags:
  - cve.org
  - exploit-available
ingestedAt: '2026-10-19T18:35:50.153Z'
---

## Overview

follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From 1.16.0 until 1.16.1, escapeRegex leaves valid header-name metacharacters unescaped in sensitiveHeaders. When an application declares a sensitive header whose name contains ^ or | and follows a cross-origin or HTTPS-to-HTTP redirect, unescaped regular-expression metacharacters prevent the generated filter from matching the declared header name, and the credential header is forwarded to an attacker-controlled redirect target. This issue is fixed in version 1.16.1.

## Affected

- `follow-redirects >= 1.16.0, < 1.16.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
