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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2026-04-2119:59CVE publishedCNA
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.16 | < 1.16.0 | 1.16.0 | NVD · OSV |
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-redirectsAffected
- = < 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
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
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
Red Hat Security Advisory: New container image: rhceph-9.2
Red Hat Security Advisory: RHOAI 2.25.11 - Red Hat OpenShift AI
Red Hat Security Advisory: OpenShift Container Platform 4.17.56 bug fix and security update
Red Hat Security Advisory: OpenShift Container Platform 4.18.51 bug fix and security update
41 more advisories
Fix
- Update Follow-redirects project follow-redirects to 1.16.0
- 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/
- 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.
- 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/
- 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.…
- 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.…
- 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
- github.comMitigation · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-04-22
- CNACVSS 4.06.92026-11-02
- GitHub AdvisoriesCVSS 4.06.92026-11-02
- CNACVSS 3.17.5read 2026-11-03
- NVDCVSS 3.17.5read 2026-11-03
- CNAweakness (CWE)CWE-2002026-11-02
- GitHub Advisoriesweakness (CWE)CWE-2002026-11-02
- FIRST EPSSEPSS score0.5 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2026-04-14
Identifiers
- CGA-24vg-49g8-cm7csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2c3m-7h2j-wc4wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2cqh-wmpg-vjw5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2fjj-m9wj-r5w9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2m9q-3hqw-f6mcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2q3c-wr3c-vr7psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2r5w-g6f7-v2cfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2wxx-gg46-8c9msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3658-hq75-7224same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3ggf-923r-2mvrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3gq5-4qrc-pj57same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3p6v-2pf7-frm3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3pcx-9cwj-fv43same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3pf5-2x4x-hg5hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3r28-5fp6-6fxwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3v2f-8466-cqpcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3vwg-x3p7-6pg9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3xh6-m6rv-vwpmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-44ch-mcfr-39m2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-46v8-79q9-hwmjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4c5c-gj6r-qv7msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4f95-2c52-wpv2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4g96-jv7g-g7fpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4h29-296v-vrmrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4hcr-m5c7-7c87same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4j9q-vg4j-hj3hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4pgm-g76v-q6f2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4wh9-3pf8-xg6hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4wpq-vrgh-7r6rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-56gp-hfmx-5c3vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-599w-vh8x-grccsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5jmh-m352-xv9jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5jwm-4m76-7p3jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5rjj-73xc-28qpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5vrc-33pq-77r2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5vwq-8w9h-c8p8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5w76-2w27-g4wwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-62pc-5xqf-x4whsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-62r6-gc7j-2cfxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-64xm-w7g5-mgcrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6f7h-67cv-j89jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6m8h-r2xh-w43xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6x5q-hcjq-4frcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-75jh-vw3c-gj65same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7636-8r7q-6vg7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-78hq-wrxh-43p4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-79h3-4359-h8fgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7gh4-6g86-vgfhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7jgh-7jr4-27gpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7pwg-rf69-wxhvsame flawChainguard · CC-BY-NC-ND-4.0
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?
Is CVE-2026-40895 actively exploited?
What is the CVSS score for CVE-2026-40895?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-r4q5-vmmm-2653
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0