Description
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.
Published: 2026-10-19
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Credential Disclosure via Sensitive Header Forwarding
Action: Patch
AI Analysis

Impact

follow-redirects, a Node.js HTTP and HTTPS client wrapper, contains a flaw where the escapeRegex function fails to escape regex metacharacters in the sensitiveHeaders list. When an application declares a header name that includes characters such as ^ or | and the request follows a cross‑origin or HTTPS‑to‑HTTP redirect, the generated filter does not match the header name and the credential header is forwarded to the attacker‑controlled redirect target. This unauthorized forwarding results in the disclosure of sensitive credentials that were intended to remain private.

Affected Systems

Versions of follow-redirects from 1.16.0 through just before 1.16.1 are affected. Any Node.js application that uses this library to automatically follow redirects and declares a sensitive header whose name contains unescaped regex metacharacters is at risk. The vulnerable product is the follow‑redirects library commonly used in JavaScript/Node.js HTTP client code.

Risk and Exploitability

The vulnerability has a CVSS score of 8.2, signifying high severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. Attackers can exploit this by directing traffic through a malicious redirect URL that receives the forwarded credential header. The impact is primarily the exposure of credential information; the attack does not require local code execution or elevated privileges on the target system, but it does rely on influencing or observing a redirect path. Therefore, the risk is significant, especially when sensitive headers contain unescaped characters exposed during redirects.

Generated by OpenCVE AI on October 19, 2026 at 18:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the follow-redirects library to version 1.16.1 or later, which contains the fixed escapeRegex logic.
  • If an upgrade cannot be performed immediately, review any sensitive header names for characters such as ^ or | and either remove those characters or avoid declaring them as sensitive headers.
  • Avoid using cross‑origin or HTTPS‑to‑HTTP redirects that transmit sensitive headers, or configure the application to strip sensitive headers before redirecting.
  • Monitor application traffic for unexpected credential header leakage and verify that redirects do not forward credential headers.

Generated by OpenCVE AI on October 19, 2026 at 18:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Description 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.
Title follow-redirects sensitiveHeaders regex escaping can expose credential headers
Weaknesses CWE-185
CWE-200
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-19T18:00:16.343Z

Reserved: 2026-10-16T17:52:09.081Z

Link: CVE-2026-111755

cve-icon Vulnrichment

Updated: 2026-10-19T18:00:06.589Z

cve-icon NVD

Status : Received

Published: 2026-10-19T18:17:00.260

Modified: 2026-10-19T18:17:00.260

Link: CVE-2026-111755

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T18:30:02Z

Weaknesses
  • CWE-185

    Incorrect Regular Expression

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor