# CVE-2026-40895: follow-redirects: Custom Authentication Headers Leaked to Cross-Domain Redirect Targets

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-21 · Modified: 2026-11-02
- Aliases: UBUNTU-CVE-2026-40895, USN-8632-1, DEBIAN-CVE-2026-40895, GHSA-r4q5-vmmm-2653, CGA-2cqh-wmpg-vjw5, CGA-3ggf-923r-2mvr, CGA-3pf5-2x4x-hg5h, CGA-3r28-5fp6-6fxw, CGA-3v2f-8466-cqpc, CGA-3xh6-m6rv-vwpm, CGA-46v8-79q9-hwmj, CGA-4c5c-gj6r-qv7m, CGA-4hcr-m5c7-7c87, CGA-4wh9-3pf8-xg6h, CGA-4wpq-vrgh-7r6r, CGA-56gp-hfmx-5c3v, CGA-5vwq-8w9h-c8p8, CGA-79h3-4359-h8fg, CGA-7v5c-8qwq-5344, CGA-852m-m9r5-8fh5, CGA-88gh-pxvq-6pv9, CGA-8jp8-595p-wvc2, CGA-8q6m-w7m3-3x97, CGA-998j-fpmq-3gxm, CGA-99f7-g8rp-6hc4, CGA-9fxh-xwq9-wqq6, CGA-9v23-jgqj-xcc3, CGA-cvf9-32c9-j8fh, CGA-f36x-j9pj-w288, CGA-f3j3-vrpf-wx74, CGA-f7fm-385q-6h9g, CGA-g399-w7jf-j6m6, CGA-g57h-gv66-43ff, CGA-g7v7-f3jq-g88r, CGA-gcxh-r84g-9w3r, CGA-gg8x-44x4-gmvv, CGA-gvvf-322x-cvph, CGA-hqcm-4gfx-5vjm, CGA-j3fh-48pw-wcw4, CGA-j5mf-pc8f-m34r, CGA-j6f3-mh6m-4qgp, CGA-jmcw-25jh-qjm9, CGA-jvv5-43cj-59jr, CGA-mhgx-wj66-r36x, CGA-mm4f-r2rr-r625, CGA-pj42-x52j-xw68, CGA-qhw7-9vww-4c35, CGA-qx5w-qpxv-6m9c, CGA-r3x6-3362-6fhc, CGA-rc9p-pp6c-vhjc, CGA-rggg-q7cm-wqq9, CGA-v8c5-5f45-g978, CGA-vcjm-9qg6-gf2h, CGA-w896-8g64-xvjw, CGA-x5w8-9chc-884f, CGA-xqvh-mqv6-93wr, CGA-24vg-49g8-cm7c, CGA-2c3m-7h2j-wc4w, CGA-2fjj-m9wj-r5w9, CGA-2m9q-3hqw-f6mc, CGA-2q3c-wr3c-vr7p, CGA-2r5w-g6f7-v2cf, CGA-2wxx-gg46-8c9m, CGA-3658-hq75-7224, CGA-3gq5-4qrc-pj57, CGA-3p6v-2pf7-frm3, CGA-3pcx-9cwj-fv43, CGA-3vwg-x3p7-6pg9, CGA-44ch-mcfr-39m2, CGA-4f95-2c52-wpv2, CGA-4g96-jv7g-g7fp, CGA-4h29-296v-vrmr, CGA-4j9q-vg4j-hj3h, CGA-4pgm-g76v-q6f2, CGA-599w-vh8x-grcc, CGA-5jmh-m352-xv9j, CGA-5jwm-4m76-7p3j, CGA-5rjj-73xc-28qp, CGA-5vrc-33pq-77r2, CGA-5w76-2w27-g4ww, CGA-62pc-5xqf-x4wh, CGA-62r6-gc7j-2cfx, CGA-64xm-w7g5-mgcr, CGA-6f7h-67cv-j89j, CGA-6m8h-r2xh-w43x, CGA-6x5q-hcjq-4frc, CGA-75jh-vw3c-gj65, CGA-7636-8r7q-6vg7, CGA-78hq-wrxh-43p4, CGA-7gh4-6g86-vgfh, CGA-7jgh-7jr4-27gp, CGA-7pwg-rf69-wxhv, CGA-7xxx-9vgp-5cvp, CGA-83vx-48r6-cp8q, CGA-86x6-9gmc-6c29, CGA-8862-7fx2-6vr5, CGA-8cmq-947r-x3fq, CGA-8q39-5cg9-pr3v, CGA-8ww3-mfw9-6qwr, CGA-926h-j95c-2jm5, CGA-95h6-f4vm-r82q, CGA-9955-9f34-2cjx, CGA-9hpm-242r-9vph, CGA-9hpv-7r7h-c5g6, CGA-9p98-hm2f-5q53, CGA-9rf8-qxgh-p93x, CGA-9wfg-wwmh-m8v9, CGA-9xvr-8jgr-4pvr, CGA-c35c-pf6g-3v67, CGA-c4px-wjcm-xqvj, CGA-c4xp-qrjm-25fx, CGA-c972-h99g-99xq, CGA-c9xg-gmhg-g38p, CGA-cg99-9cm9-8272, CGA-cmj5-qp36-6mg5, CGA-f4cw-r647-x5jc, CGA-f5m3-7vm5-gf3m, CGA-f93w-h2jf-3v47, CGA-fcxj-qccf-wqjj, CGA-ff2c-fr3j-33fv, CGA-ff2w-jm8f-87qr, CGA-ffgv-q4m5-5v7v, CGA-fm74-xjwm-q3r2, CGA-fmj3-5jp8-79m5, CGA-fxrq-v645-q7h5, CGA-g95p-j72m-78h5, CGA-ggpm-78cr-6crx, CGA-gj8c-j95f-xmv4, CGA-gpvm-6xcw-mcxg, CGA-h34j-hw46-vr86, CGA-h698-f3cv-7c4j, CGA-hf3w-pfcv-q9cx, CGA-hvm3-6w78-45v6, CGA-hwf9-5rq5-vqc2, CGA-hxxc-5r98-xcwv, CGA-j296-h6wp-4jfc, CGA-j475-g97c-v9r6, CGA-j4xr-452g-f62r, CGA-j7hg-x2rr-3v4f, CGA-jgxj-vpcj-2v48, CGA-jhg4-rc7x-qhmm, CGA-jqqv-59rx-4h2m, CGA-jqwm-qcg7-gw85, CGA-jrqv-54hg-w552, CGA-jxvg-mq8p-pv67, CGA-m2jw-342r-m9wm, CGA-m35q-vq8q-24mr, CGA-m3rw-vjg3-37fw, CGA-m3w5-f2wf-9qjw, CGA-mfcv-rmf3-9wx2, CGA-pf35-79r2-pg7h, CGA-pj59-9qj3-jjmj, CGA-pqc4-wg4v-x8hx, CGA-pqr5-2pwp-f86r, CGA-px5f-5228-r4mh, CGA-pxwx-pxcv-3p34, CGA-q53m-48vv-hr24, CGA-q76w-w77x-phvf, CGA-q87j-8m75-28xr, CGA-qjgj-g59c-j559, CGA-qppq-pqcj-8g2q, CGA-qr94-j5hc-cw72, CGA-qvhv-w32p-h7cq, CGA-qvx6-cj27-847c, CGA-qwx3-4784-6f6g, CGA-r28h-r57h-frr8, CGA-r62j-3j96-p7x3, CGA-r6jh-xxc6-wj5c, CGA-r8h2-f26r-3vm7, CGA-rf96-9mh6-29p8, CGA-rpfg-3qrx-h4w3, CGA-rr76-3287-jqxx, CGA-rr7r-f3j2-xrwx, CGA-vf9c-p9r3-mgvr, CGA-vggg-g939-8vhc, CGA-vghg-vmg9-4jpq, CGA-vhmm-xhj9-4vpr, CGA-vv3h-wf4p-4mfc, CGA-vwj8-4hxv-97c4, CGA-vx39-rhg7-7p39, CGA-vxx4-68mx-25g9, CGA-w694-8xv6-778q, CGA-w7gg-pgqr-33jr, CGA-wc77-xmxf-fjh9, CGA-wc8q-fq35-mh6x, CGA-wf6x-r4g8-wp65, CGA-wwwj-hwwv-v87g, CGA-wx65-84xg-738c, CGA-x3p5-8wp6-3445, CGA-xf79-cvmq-w757, CGA-xh45-qcpj-j5fh, CGA-xjg9-48gp-g89g, CGA-xp69-2662-fvw7, CGA-xwjq-wr3h-p478
- Record: https://cvemate.com/vulnerability/CVE-2026-40895 · JSON: https://cvemate.com/vulnerability/CVE-2026-40895/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.642%, percentile 52.171%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 103)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r5
- chainguard arangodb-3.12 (Chainguard): \< 3.12.11-r1
- chainguard argo-workflows-ui-3.6 (Chainguard): \< 3.6.19-r6
- chainguard argo-workflows-ui-3.7 (Chainguard): \< 3.7.13-r2
- chainguard argo-workflows-ui-4.0 (Chainguard): \< 4.0.4-r5
- chainguard code-server (Chainguard): \< 4.112.0-r3
- chainguard configurable-http-proxy (Chainguard): \< 5.2.0-r3
- chainguard dbgate (Chainguard): \< 7.1.9-r0
- chainguard dbgate-fips (Chainguard): \< 7.1.9-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded) \| \< 18.10.8-r8
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.6-r7 \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.3-r1

## References (first 20 of 57)

- <https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653>
- <https://access.redhat.com/security/cve/CVE-2026-40895>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460297>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40895.json>
- <https://access.redhat.com/errata/RHSA-2026:17789>
- <https://access.redhat.com/errata/RHSA-2026:26010>
- <https://access.redhat.com/errata/RHSA-2026:16874>
- <https://access.redhat.com/errata/RHSA-2026:36882>
- <https://access.redhat.com/errata/RHSA-2026:24539>
- <https://access.redhat.com/errata/RHSA-2026:25273>
- <https://access.redhat.com/errata/RHSA-2026:20938>
- <https://access.redhat.com/errata/RHSA-2026:20889>
- <https://access.redhat.com/errata/RHSA-2026:24766>
- <https://access.redhat.com/errata/RHSA-2026:21338>
- <https://access.redhat.com/errata/RHSA-2026:13826>
- <https://access.redhat.com/errata/RHSA-2026:14937>
- <https://access.redhat.com/errata/RHSA-2026:41928>
- <https://access.redhat.com/errata/RHSA-2026:50300>
- <https://access.redhat.com/errata/RHSA-2026:24977>
- <https://access.redhat.com/errata/RHSA-2026:65126>

---

Data as of 2026-12-05T09:21:58.961Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
