Skip to main content
VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2026-40895· Medium 6.9

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

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Sources agree

CVSS scores by source
CNA (GitHub_M)CVSS 4.06.9
ADP (redhat-SADP)CVSS 3.17.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu Pro 26.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • <1.15.11+~1.14.4-1ubuntu0.1~esm1
Fixed in
  • 1.15.11+~1.14.4-1ubuntu0.1~esm1
Ubuntu 25.10node-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=questingOther threatsAffected
  • =1.15.9+~1.14.4-1
Fixed in–
Ubuntu Pro 24.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <1.15.6+~1.14.4-1ubuntu0.1~esm1
Fixed in
  • 1.15.6+~1.14.4-1ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1.14.9+~1.14.1-1ubuntu0.1~esm2
Fixed in
  • 1.14.9+~1.14.1-1ubuntu0.1~esm2
Ubuntu Pro 20.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.2.4-1ubuntu0.20.04.1~esm2
Fixed in
  • 1.2.4-1ubuntu0.20.04.1~esm2
Ubuntu Pro 18.04 LTSnode-follow-redirectspkg:deb/ubuntu/node-follow-redirects?arch=source&distro=esm-apps/bionicOther threatsAffected
  • <1.2.4-1ubuntu0.18.04.1~esm2
Fixed in
  • 1.2.4-1ubuntu0.18.04.1~esm2

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

Community reviews

Loading reviews…