Skip to main content
No exploitation reportedFix available

CVE-2026-40895

follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets

No exploitation reported by the sources we read.

  • Published2026-04-21
  • Fixed in1.16.0
  • WeaknessCWE-200 · CWE-212

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-04-2119:59CVE publishedCNA

Versions per branch

NVD · OSV
Follow-redirects project follow-redirects
BranchAffectedFixed in
1.16< 1.16.01.16.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • follow-redirects
    Affected
    • = < 1.16.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-04-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • arangodb-3.11Chainguardall versions · fixed in 3.11.14.5-r5
  • arangodb-3.12Chainguardall versions · fixed in 3.12.11-r1
  • argo-workflows-ui-3.6Chainguardall versions · fixed in 3.6.19-r6
  • argo-workflows-ui-3.7Chainguardall versions · fixed in 3.7.13-r2
  • argo-workflows-ui-4.0Wolfiall versions · fixed in 4.0.4-r5
  • argo-workflows-ui-4.0Chainguardall versions · fixed in 4.0.4-r5
  • code-serverWolfiall versions · fixed in 4.112.0-r3
  • code-serverChainguardall versions · fixed in 4.112.0-r3

67 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-40895 Red Hat Product Security226 products fixed · 41 known affected

    follow-redirects: follow-redirects: Information disclosure via cross-domain redirects

    mta/mta-ui-rhel8 as a component of Migration Toolkit for Applications 8 · openshift-pipelines/pipelines-hub-ui-rhel8 as a component of OpenShift Pipelines · openshift-pipelines/pipelines-hub-ui-rhel9 as a component of OpenShift Pipelines · +38 more

  • RHSA-2026:88541 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

  • RHSA-2026:86618 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: New container image: rhceph-9.2

  • RHSA-2026:65126 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHOAI 2.25.11 - Red Hat OpenShift AI

  • RHSA-2026:47728 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.17.56 bug fix and security update

  • RHSA-2026:48699 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.18.51 bug fix and security update

41 more advisories

Full record on NVD

Fix

  1. Update Follow-redirects project follow-redirects to 1.16.0
  2. Vendor fix Red Hat Product Security RHSA-2026:88541 · 4 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
  3. Vendor fix Red Hat Product Security RHSA-2026:86618 · 4 productsThe container images provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
  4. Vendor fix Red Hat Product Security RHSA-2026:65126 · 4 productsFor Red Hat OpenShift AI 2.25.11 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
  5. Vendor fix Red Hat Product Security RHSA-2026:47728 · 4 productsFor OpenShift Container Platform 4.17 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  6. Vendor fix Red Hat Product Security RHSA-2026:48699 · 4 productsFor OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  7. Vendor fix Red Hat Product Security RHSA-2026:50300 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 4.0 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2026-04-21
Last Modified
2026-11-03
NVD status
Modified
GitHub Advisory
GHSA-r4q5-vmmm-2653

Frequently asked questions

What is CVE-2026-40895?

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.

Is CVE-2026-40895 actively exploited?

Active exploitation of CVE-2026-40895 has not been confirmed. Its EPSS score was 0.5% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-40895?

CVE-2026-40895 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running follow-redirects? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record