Regex escaping flaw in follow-redirects leaks credential headers
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
Summary
follow-redirects versions from 1.16.0 before 1.16.1 are affected. The escapeRegex function leaves some regular-expression metacharacters unescaped in sensitiveHeaders, so an application's sensitive header whose name contains ^ or | is not matched by the filter (CWE-185). A remote attacker who controls a redirect target can receive the credential header when a cross-origin or HTTPS-to-HTTP redirect is followed.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| follow-redirects | follow-redirects | 1.16.0 to before 1.16.1 | 1.16.1 | Patch available | CNA |
| — | follow-redirects (npm) | 1.16.0 to before 1.16.1 | 1.16.1 | Patch available | GHSA-8r9p-f939-6h3c |
- follow-redirects Vendorfollow-redirects Affected 1.16.0 to before 1.16.1 Fixed in 1.16.1 Patch available CNA
- follow-redirects (npm) Vendor— Affected 1.16.0 to before 1.16.1 Fixed in 1.16.1 Patch available GHSA-8r9p-f939-6h3c
Remediation
Upgrade the npm package follow-redirects to version 1.16.1. Red Hat fixes Red Hat Hardened Images in RHSA-2026:88541, RHSA-2026:88537 and RHSA-2026:88478.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
- Fix · CNA follow-redirects (follow-redirects) Fixed in 1.16.1
- Fix · GHSA-8r9p-f939-6h3c follow-redirects (npm) Fixed in 1.16.1 Advisory →
Red Hat 3 advisories
- RHSA-2026:88541 Released 2026-10-23 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images grafana13.2-13.2.4-0.3.hum1@aarch64, grafana13.2-13.2.4-0.3.hum1@s390x, grafana13.2-13.2.4-0.3.hum1@src +1
- RHSA-2026:88537 Released 2026-10-23 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images grafana13.1-13.1.8-0.4.hum1@aarch64, grafana13.1-13.1.8-0.4.hum1@s390x, grafana13.1-13.1.8-0.4.hum1@src +1
- RHSA-2026:88478 Released 2026-10-23 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images grafana12.4-12.4.13-0.3.hum1@aarch64, grafana12.4-12.4.13-0.3.hum1@src, grafana12.4-12.4.13-0.3.hum1@x86_64
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Affected | No fix planned: Will not fix |
| Red Hat Hardened Images | Fixed | RHSA-2026:88478, RHSA-2026:88537, RHSA-2026:88541 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-19 Threatist record created from CVE-2026-111755
- 2026-10-20 Affected versions changed · Red Hat
- 2026-10-20 CVSS score added · Red Hat
- 2026-10-21 Alias added: GHSA-8r9p-f939-6h3c
- 2026-10-21 Fix available: npm/[email protected] · GHSA-8r9p-f939-6h3c
- 2026-10-21 CVSS score added · GHSA-8r9p-f939-6h3c
- 2026-10-21 Weakness changed · GHSA-8r9p-f939-6h3c
- 2026-10-21 5 new references · GHSA-8r9p-f939-6h3c
- 2026-10-23 Fix available: RHSA-2026:88541 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88478 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88537 · Red Hat
- 2026-10-23 Fix available: Red Hat Hardened Images · Red Hat
References
Other 4
- https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-8r9p-f939-6h3c
- https://github.com/follow-redirects/follow-redirects/commit/080a76d0e125b37bf81717368a61d5dc37aa56c8
- https://github.com/follow-redirects/follow-redirects/releases/tag/v1.16.1
- https://github.com/follow-redirects/follow-redirects
More follow-redirects vulnerabilities
- TI-2026-76983 Credential headers leak across redirects in follow-redirects CVSS 4.0HIGH 8.2
- TI-2023-11383 Improper input validation in follow-redirects CVSS 3.1HIGH 7.3
- TI-2024-19051 Proxy-Authorization header kept across hosts in follow-redirects CVSS 3.1MEDIUM 6.5
- TI-2026-81522 Credential headers forwarded on redirects in follow-redirects CVSS 3.1MEDIUM 5.9
- TI-2022-00097 Exposure of Private Personal Information to an Unauthorized Actor in follow-redirects/follow-redirects CVSS 3.1MEDIUM 6.5
- TI-2026-29551 follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-111755 · CVE Program
- CVE-2026-111755 · NVD
- FIRST EPSS
- GHSA-8r9p-f939-6h3c · GitHub Advisory Database · CC BY 4.0
- CVE-2026-111755 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences