Vulnerability
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.
196 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-24vg-49g8-cm7c
- CGA-2c3m-7h2j-wc4w
- CGA-2cqh-wmpg-vjw5
- 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-3ggf-923r-2mvr
- CGA-3gq5-4qrc-pj57
- CGA-3p6v-2pf7-frm3
- CGA-3pcx-9cwj-fv43
- CGA-3pf5-2x4x-hg5h
- CGA-3r28-5fp6-6fxw
- CGA-3v2f-8466-cqpc
- CGA-3vwg-x3p7-6pg9
- CGA-3xh6-m6rv-vwpm
- CGA-44ch-mcfr-39m2
- CGA-46v8-79q9-hwmj
- CGA-4c5c-gj6r-qv7m
- CGA-4f95-2c52-wpv2
- CGA-4g96-jv7g-g7fp
- CGA-4h29-296v-vrmr
- CGA-4hcr-m5c7-7c87
- CGA-4j9q-vg4j-hj3h
- CGA-4pgm-g76v-q6f2
- CGA-4wh9-3pf8-xg6h
- CGA-4wpq-vrgh-7r6r
- CGA-56gp-hfmx-5c3v
- CGA-599w-vh8x-grcc
- CGA-5jmh-m352-xv9j
- CGA-5jwm-4m76-7p3j
- CGA-5rjj-73xc-28qp
- CGA-5vrc-33pq-77r2
- CGA-5vwq-8w9h-c8p8
- 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-79h3-4359-h8fg
- CGA-7gh4-6g86-vgfh
- CGA-7jgh-7jr4-27gp
- CGA-7pwg-rf69-wxhv
- CGA-7v5c-8qwq-5344
- CGA-7xxx-9vgp-5cvp
- CGA-83vx-48r6-cp8q
- CGA-852m-m9r5-8fh5
- CGA-86x6-9gmc-6c29
- CGA-8862-7fx2-6vr5
- CGA-88gh-pxvq-6pv9
- CGA-8cmq-947r-x3fq
- CGA-8jp8-595p-wvc2
- CGA-8q39-5cg9-pr3v
- CGA-8q6m-w7m3-3x97
- CGA-8ww3-mfw9-6qwr
- CGA-926h-j95c-2jm5
- CGA-95h6-f4vm-r82q
- CGA-9955-9f34-2cjx
- CGA-998j-fpmq-3gxm
- CGA-99f7-g8rp-6hc4
- CGA-9fxh-xwq9-wqq6
- CGA-9hpm-242r-9vph
- CGA-9hpv-7r7h-c5g6
- CGA-9p98-hm2f-5q53
- CGA-9rf8-qxgh-p93x
- CGA-9v23-jgqj-xcc3
- 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-cvf9-32c9-j8fh
- CGA-f36x-j9pj-w288
- CGA-f3j3-vrpf-wx74
- CGA-f4cw-r647-x5jc
- CGA-f5m3-7vm5-gf3m
- CGA-f7fm-385q-6h9g
- 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-g399-w7jf-j6m6
- CGA-g57h-gv66-43ff
- CGA-g7v7-f3jq-g88r
- CGA-g95p-j72m-78h5
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-40895.
References
- https://github.com/follow-redirects/follow-redirects/commit/844c4d302ac963d29bdb5dc1754ec7df3d70d7f9
- https://github.com/follow-redirects/follow-redirects/security/advisories/GHSA-r4q5-vmmm-2653
- https://access.redhat.com/errata/RHSA-2026:13826
- https://access.redhat.com/errata/RHSA-2026:14937
- https://access.redhat.com/errata/RHSA-2026:16476
- https://access.redhat.com/errata/RHSA-2026:16532
- https://access.redhat.com/errata/RHSA-2026:16534
- https://access.redhat.com/errata/RHSA-2026:16535
- https://access.redhat.com/errata/RHSA-2026:16542
- https://access.redhat.com/errata/RHSA-2026:16874
- https://access.redhat.com/errata/RHSA-2026:17657
- https://access.redhat.com/errata/RHSA-2026:17699
- https://access.redhat.com/errata/RHSA-2026:17789
- https://access.redhat.com/errata/RHSA-2026:19109
- https://access.redhat.com/errata/RHSA-2026:19375
- https://access.redhat.com/errata/RHSA-2026:19712
- https://access.redhat.com/errata/RHSA-2026:20889
- https://access.redhat.com/errata/RHSA-2026:20938
- https://access.redhat.com/errata/RHSA-2026:21017
- https://access.redhat.com/errata/RHSA-2026:21338
- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/errata/RHSA-2026:22465
- https://access.redhat.com/errata/RHSA-2026:22629
- https://access.redhat.com/errata/RHSA-2026:22840
- https://access.redhat.com/errata/RHSA-2026:23361
- https://access.redhat.com/errata/RHSA-2026:24536
- https://access.redhat.com/errata/RHSA-2026:24539
- https://access.redhat.com/errata/RHSA-2026:24766
- https://access.redhat.com/errata/RHSA-2026:24853
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:25271
- https://access.redhat.com/errata/RHSA-2026:25273
- https://access.redhat.com/errata/RHSA-2026:26010
- https://access.redhat.com/errata/RHSA-2026:27004
- https://access.redhat.com/errata/RHSA-2026:27044
- https://access.redhat.com/errata/RHSA-2026:27063
- https://access.redhat.com/errata/RHSA-2026:36882
- https://access.redhat.com/errata/RHSA-2026:40768
- https://access.redhat.com/errata/RHSA-2026:41928
- https://access.redhat.com/errata/RHSA-2026:44235
- https://access.redhat.com/errata/RHSA-2026:44263
- https://access.redhat.com/errata/RHSA-2026:44267
- https://access.redhat.com/errata/RHSA-2026:47728
- https://access.redhat.com/errata/RHSA-2026:48699
- https://access.redhat.com/errata/RHSA-2026:50300
- https://access.redhat.com/errata/RHSA-2026:65126
- 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