High severity · published Apr 21, 2026
CVE-2026-40895
follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets
7.5
CVSS
0.5%
EPSS
No
On KEV
Description
follow-redirects is an open source, drop-in replacement for Node's `http` and `https` modules that automatically follows redirects. Prior to 1.16.0, when an HTTP request follows a cross-domain redirect (301/302/307/308), follow-redirects only strips authorization, proxy-authorization, and cookie headers (matched by regex at index.js). Any custom authentication header (e.g., X-API-Key, X-Auth-Token, Api-Key, Token) is forwarded verbatim to the redirect target. This vulnerability is fixed in 1.16.0.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 42% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FO
follow-redirects · follow-redirects
< 1.16.0 · source: vendor, NVD
CO
Cluster Observability Operator 1.5.0 · Red Hat
All versions, or not specified · source: CISA
C4
Cryostat 4 on RHEL 9 · Red Hat
All versions, or not specified · source: CISA
MT
Migration Toolkit for Applications 8 · Red Hat
All versions, or not specified · source: CISA
NO
Network Observability (NETOBSERV) 1.11.0 · Red Hat
All versions, or not specified · source: CISA
OP
OpenShift Pipelines · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat 3scale API Management Platform 2 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Management for Kubernetes 2.14 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Management for Kubernetes 2.15 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Management for Kubernetes 2.16 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Security 4.9 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Security for Kubernetes 4.10 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40895
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40895
Mitigation
https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:13826
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:14937
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:16476
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:16532
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:16534
More from follow-redirects
8.2
CVE-2026-111756
follow-redirects array-form headers bypass cross-origin credential stripping
8.2
CVE-2026-111755
follow-redirects sensitiveHeaders regex escaping can expose credential headers
6.1
CVE-2023-26159
Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function
5.9
CVE-2026-116689
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
