CVE-2026-40895: follow-redirects is an open source, drop-in replacement for Node's `http` and `https` modules that automatical
CVE-2026-40895 is a high-severity flaw (CVSS 7.5) affecting follow-redirects. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 red
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-09-10 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40895?
follow-redirects: upgrade to 1.16.0. Exact commands for each OS are on this page.
Is CVE-2026-40895 being exploited?
CVE-2026-40895 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40895 affect?
CVE-2026-40895 affects follow-redirects. Severity is high (CVSS 7.5). 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 on
How urgent is CVE-2026-40895?
Priority 42/100. High severity; Remotely exploitable, no login, no user action