CVE-2026-40895

Publication date 21 April 2026

Last updated 13 August 2026


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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
25.10 questing Ignored end of life, was needs-triage
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 trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
node-follow-redirects

Severity 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


Access our resources on patching vulnerabilities