cve.bz

CVE-2026-40895 follow-redirects project follow-redirects

6.9 mediumEPSS 0.6%Fix available

Medium (6.9) in follow-redirects project follow-redirects. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in follow-redirects 1.16.0.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (up from 0.5% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40895 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40895?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40895?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40895 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
follow-redirects_project:follow-redirectsbefore 1.16.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r4q5-vmmm-2653npmfollow-redirects<1.16.01.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-follow-redirectsno fix listedDEBIAN-CVE-2026-40895
Debian14node-follow-redirects1.16.0+~1.14.4-1DEBIAN-CVE-2026-40895
Ubuntu25.10node-follow-redirectsno fix listedUBUNTU-CVE-2026-40895
UbuntuPro:18.04:LTSnode-follow-redirects1.2.4-1ubuntu0.18.04.1~esm2UBUNTU-CVE-2026-40895 USN-8632-1
UbuntuPro:20.04:LTSnode-follow-redirects1.2.4-1ubuntu0.20.04.1~esm2UBUNTU-CVE-2026-40895 USN-8632-1
UbuntuPro:22.04:LTSnode-follow-redirects1.14.9+~1.14.1-1ubuntu0.1~esm2UBUNTU-CVE-2026-40895 USN-8632-1
UbuntuPro:24.04:LTSnode-follow-redirects1.15.6+~1.14.4-1ubuntu0.1~esm1UBUNTU-CVE-2026-40895 USN-8632-1
UbuntuPro:26.04:LTSnode-follow-redirects1.15.11+~1.14.4-1ubuntu0.1~esm1UBUNTU-CVE-2026-40895 USN-8632-1
Red Hathummingbird:1grafana13.20:13.2.4-0.3.hum1RHSA-2026:88541

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important impact information disclosure vulnerability in the follow-redirects npm package allows custom authentication headers (such as X-API-Key or X-Auth-Token) to be forwarded verbatim when HTTP requests follow cross-domain redirects. Applications that pass sensitive authentication headers while using follow-redirects may inadvertently expose those credentials to untrusted redirect targets.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-9Fixed 2026-05-26RHSA-2026:17789
Cluster Observability Operator 1.5.3cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9:1781116645Fixed 2026-06-15RHSA-2026:26010
Cluster Observability Operator 1.5.3cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9:1781116658Fixed 2026-06-15RHSA-2026:26010
Cluster Observability Operator 1.5.3cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9:1781116387Fixed 2026-06-15RHSA-2026:26010
Cluster Observability Operator 1.5.3cluster-observability-operator/distributed-tracing-console-plugin-rhel9:1781116392Fixed 2026-06-15RHSA-2026:26010
multicluster engine for Kubernetes 2.10multicluster-engine/console-mce-rhel9:1780917531Fixed 2026-06-08RHSA-2026:24536
multicluster engine for Kubernetes 2.11multicluster-engine/console-mce-rhel9:1780910888Fixed 2026-06-11RHSA-2026:25271
multicluster engine for Kubernetes 2.6multicluster-engine/console-mce-rhel9:1778511348Fixed 2026-05-14RHSA-2026:17657
multicluster engine for Kubernetes 2.8multicluster-engine/console-mce-rhel9:1778383863Fixed 2026-05-14RHSA-2026:17699
multicluster engine for Kubernetes 2.9multicluster-engine/console-mce-rhel9:1778532610Fixed 2026-05-19RHSA-2026:19109
Cryostat 4cryostat-openshift-console-plugin-npmNot affected
Cryostat 4follow-redirectsNot affected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel8Affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Not affected
Migration Toolkit for Virtualizationmtv-candidate/mtv-console-plugin-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleNot affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorNot affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-419-rhel9Not affected
149 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40895.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON