# CVE-2026-40895: node-follow-redirects: follow-redirects is an open source, drop-in replacement for Node's `http` and `https` modules that automatically foll...

CVE-2026-40895 is fixed in node-follow-redirects on 1 platform, first by node-follow-redirects 1.2.4-1ubuntu0.18.04.1~esm2, released April 21, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-40895
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0049
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 21, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | node-follow-redirects Debian 14 | 1.16.0+~1.14.4-1 | [DEBIAN-CVE-2026-40895](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40895.md) | May 15, 2026 |
| Linux | node-follow-redirects Ubuntu 18.04.6 LTS (bionic) | 1.2.4-1ubuntu0.18.04.1~esm2 | [node-follow-redirects 1.2.4-1ubuntu0.18.04.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-node-follow-redirects-1.2.4-1ubuntu0.18.04.1-esm2.md) | Apr 21, 2026 |
| Linux | node-follow-redirects Ubuntu 20.04 LTS (focal) | 1.2.4-1ubuntu0.20.04.1~esm2 | [node-follow-redirects 1.2.4-1ubuntu0.20.04.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-node-follow-redirects-1.2.4-1ubuntu0.20.04.1-esm2.md) | Apr 21, 2026 |
| Linux | node-follow-redirects Ubuntu 22.04.1 LTS (jammy) | 1.14.9+~1.14.1-1ubuntu0.1~esm2 | [node-follow-redirects 1.14.9+~1.14.1-1ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-node-follow-redirects-1.14.9-1.14.1-1ubuntu0.1-esm2.md) | Apr 21, 2026 |
| Linux | node-follow-redirects Ubuntu 24.04.5 LTS (noble) | 1.15.6+~1.14.4-1ubuntu0.1~esm1 | [node-follow-redirects 1.15.6+~1.14.4-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-node-follow-redirects-1.15.6-1.14.4-1ubuntu0.1-esm1.md) | Apr 21, 2026 |
| Linux | node-follow-redirects Ubuntu 26.04.1 LTS (resolute) | 1.15.11+~1.14.4-1ubuntu0.1~esm1 | [node-follow-redirects 1.15.11+~1.14.4-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-node-follow-redirects-1.15.11-1.14.4-1ubuntu0.1-esm1.md) | Apr 21, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
