CVE-2026-40895
Publication date 21 April 2026
Last updated 13 August 2026
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| node-follow-redirects | 26.04 LTS resolute |
Fixed 1.15.11+~1.14.4-1ubuntu0.1~esm1
|
| 24.04 LTS noble |
Fixed 1.15.6+~1.14.4-1ubuntu0.1~esm1
|
|
| 22.04 LTS jammy |
Fixed 1.14.9+~1.14.1-1ubuntu0.1~esm2
|
|
| 20.04 LTS focal |
Fixed 1.2.4-1ubuntu0.20.04.1~esm2
|
|
| 18.04 LTS bionic |
Fixed 1.2.4-1ubuntu0.18.04.1~esm2
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialSeverity score breakdown
CVSS version:
Base score
6.9 · Medium
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Base score
7.5 · High
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
Related Ubuntu Security Notices (USN)
- USN-8632-1
- follow-redirects vulnerability
- 12 August 2026
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-40895
- https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
- https://github.com/follow-redirects/follow-redirects/pull/284
- https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9 (v1.16.0)