Vulnerability
CVE-2026-111756
follow-redirects is a Node.js HTTP and HTTPS client wrapper that automatically follows redirects. From version 1.16.0 to before version 1.16.1, follow-redirects removes sensitive credential headers (Authorization, Proxy-Authorization, Cookie, and any caller-declared sensitiveHeaders) before following a redirect that crosses to a different host or downgrades to a less secure protocol. The removal routine iterates the caller's headers container with for...in and matches header names against a filter. This assumes the headers container is a plain object keyed by header names. Node's underlying http.request, which follow-redirects is a drop-in replacement for, also accepts headers as an alternating array of names and values. For an array, for...in yields the numeric indices "0", "1", "2" and so on, which never match a header-name filter, so nothing is removed. An application that sends array-form headers and follows an attacker-controlled cross-origin redirect therefore forwards its Authorization, Cookie, and Proxy-Authorization headers verbatim to the attacker-controlled destination, with no error or warning. The sensitiveHeaders option added to fix CVE-2026-40895 / GHSA-r4q5-vmmm-2653 is equally ineffective, because it relies on the same helper. This is an unauthenticated confidentiality vulnerability: any remote server the victim application contacts can harvest the victim's credential headers by responding with a cross-origin redirect. This issue has been patched in version 1.16.1.
168 advisories report this vulnerability, across 9 ecosystems.
Advisories in Wolfi
- CGA-25vv-pqrc-v456
- CGA-29c2-6m5w-h64h
- CGA-2vvp-vq4r-cvxc
- CGA-33v7-h29j-24cc
- CGA-5p26-97r8-pp5v
- CGA-686f-fpgj-8rqf
- CGA-6rw2-x22g-gm74
- CGA-838f-jvf4-8vw5
- CGA-8c96-gmmh-fhr9
- CGA-92g5-c2w8-x95c
- CGA-936x-w69p-x2r8
- CGA-95r8-5pm2-cxmh
- CGA-9c68-259x-7rgq
- CGA-9gqq-86h9-8wrj
- CGA-9gvq-w5fg-j2g8
- CGA-9jq3-vcmq-mwjp
- CGA-9xvj-hq4f-v7g7
- CGA-ggv6-p94v-r87h
- CGA-jvm3-7cww-g35w
- CGA-pvf5-6682-g76q
- CGA-q27q-qxxx-pcp7
- CGA-qfv8-q6qq-p26g
- CGA-vq69-rrcw-fq5x
- CGA-w3cw-wj7q-63mf
- CGA-w5w8-qr44-6fj4
- CGA-w7cr-xxxp-q4px
- CGA-x36r-9357-rh59
- CGA-xcwh-7vx4-rxh8
- CGA-xvx6-24xx-fvh9
- CGA-xxmc-p444-g879