CVE-2026-40895
follow-redirects is an open source, drop-in replacement for Node's …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
- access.redhat.com/errata/RHSA-2026:13826
- access.redhat.com/errata/RHSA-2026:14937
- access.redhat.com/errata/RHSA-2026:16476
- access.redhat.com/errata/RHSA-2026:16532
- access.redhat.com/errata/RHSA-2026:16534
- access.redhat.com/errata/RHSA-2026:16535
- access.redhat.com/errata/RHSA-2026:16542
- nvd.nist.gov/vuln/detail/CVE-2026-40895
- cve.org/CVERecord?id=CVE-2026-40895
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.