Read the docs

Regex escaping flaw in follow-redirects leaks credential headers

Priority HIGH 69CWE-185Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00471 40th percentileScored 2026-11-07
Fix Partial follow-redirects (follow-redirects): 1.16.1follow-redirects (npm): 1.16.1Red Hat: 3 advisoriesRed Hat: 1 fixed, 1 without a fix

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

VendorProductAffected versionsFixed inStatusSource
follow-redirectsfollow-redirects1.16.0 to before 1.16.11.16.1Patch availableCNA
—follow-redirects (npm)1.16.0 to before 1.16.11.16.1Patch availableGHSA-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 Important
    Red 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 Important
    Red 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 Important
    Red 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 →

ProductStatusPlan or fix
Red Hat Hardened ImagesAffectedNo fix planned: Will not fix
Red Hat Hardened ImagesFixed RHSA-2026:88478, RHSA-2026:88537, RHSA-2026:88541
Not affected: 1 product
  • Red Hat Hardened Images

Timeline

  1. 2026-10-19 Threatist record created from CVE-2026-111755
  2. 2026-10-20 Affected versions changed · Red Hat
  3. 2026-10-20 CVSS score added · Red Hat
  4. 2026-10-21 Alias added: GHSA-8r9p-f939-6h3c
  5. 2026-10-21 Fix available: npm/[email protected] · GHSA-8r9p-f939-6h3c
  6. 2026-10-21 CVSS score added · GHSA-8r9p-f939-6h3c
  7. 2026-10-21 Weakness changed · GHSA-8r9p-f939-6h3c
  8. 2026-10-21 5 new references · GHSA-8r9p-f939-6h3c
  9. 2026-10-23 Fix available: RHSA-2026:88541 · Red Hat
  10. 2026-10-23 Fix available: RHSA-2026:88478 · Red Hat
  11. 2026-10-23 Fix available: RHSA-2026:88537 · Red Hat
  12. 2026-10-23 Fix available: Red Hat Hardened Images · Red Hat

References

  • 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
See all 7 →

Sources