CVE Catalog

CVE-2026-40895

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.49%

40th percentile - higher than 40% of all known CVEs

Summary

In the follow-redirects library for Node.js, a vulnerability was found where custom authentication headers (e.g., X-API-Key, X-Auth-Token) are not stripped during cross-domain redirects. An attacker could exploit this to intercept sensitive credentials.

Risk Assessment

The organization risks leaking API keys and authorization tokens to external, potentially malicious servers when handling HTTP redirects.

Recommendation

Immediately update the follow-redirects library to version 1.16.0 or later, which fixes this vulnerability.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS