Back to CVE records
Medium 6.9Published Apr 21, 2026

CVE-2026-40895follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets

Updated under an hour ago ()

Does this affect you?

It affects follow-redirects and 47 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
6.9 MEDIUM (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-200, CWE-212
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Sep 10, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
follow-redirects follow-redirects
follow_redirects:follow_redirects (from the name)
before 1.16.0
CNA record
from 4.2.0-9 not affected
CISA ADP
Red Hat Cluster Observability Operator 1.5.0
redhat:cluster_observability_operator
from 1781116645 not affected
CISA ADP
from 1780917531 not affected
CISA ADP
from 1778508956 not affected
CISA ADP
from 1783451729 not affected
CISA ADP
Red Hat Red Hat Advanced Cluster Security 4.9
redhat:advanced_cluster_security
from 1779371594 not affected
CISA ADP
Red Hat Red Hat Ansible Automation Platform 2.5
redhat:ansible_automation_platform
from 1780082949 not affected
CISA ADP
from 1779841586 not affected
CISA ADP
from 1778156756 not affected
CISA ADP

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.