CVE-2026-40895: Node follow redirects · follow-redirects is an open source, drop-in replacement for Node's http and
Affects node-follow-redirectsSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium · fixed in 1.2.4-1ubuntu0.18.04.1~esm2 : update node-follow-redirects when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Sources agree
| CNA (GitHub_M) | CVSS 4.0 | 6.9 |
|---|---|---|
| ADP (redhat-SADP) | CVSS 3.1 | 7.5 |
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.2.4-1ubuntu0.18.04.1~esm2, 1.2.4-1ubuntu0.20.04.1~esm2, 1.14.9+~1.14.1-1ubuntu0.1~esm2 +2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 26.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10node-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-40895 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40895 (opens in a new tab)
- github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653 (opens in a new tab)
- github.com/follow-redirects/follow-redirects/pull/284 (opens in a new tab)
- github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9 (opens in a new tab)
- ubuntu.com/security/notices/USN-8632-1 (opens in a new tab)