Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
follow-redirects follow-redirects >= 1.16.0, < 1.16.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-follow-redirects 1.16.1+~1.14.4-1 —
Debian 13 node-follow-redirects No fix yet —
Debian 12 node-follow-redirects No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-follow-redirects No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS node-follow-redirects No fix yet —
Ubuntu Pro 24.04 LTS node-follow-redirects No fix yet —
Ubuntu Pro 22.04 LTS node-follow-redirects No fix yet —
Ubuntu Pro 20.04 LTS node-follow-redirects No fix yet —
Ubuntu Pro 18.04 LTS node-follow-redirects No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.13-0.3.hum1 RHSA-2026:88478
Red Hat Hardened Images 1 grafana13.1 13.1.8-0.4.hum1 RHSA-2026:88537
Red Hat Hardened Images 1 grafana13.2 13.2.4-0.3.hum1 RHSA-2026:88541
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed agama-web-ui 25+475.275dd4727-56.1 openSUSE-SU-2026:12424-1
openSUSE Tumbleweed git-bug 0.11.0-3.1 openSUSE-SU-2026:12261-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery +1 No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.141.0-r3 —
Wolfi rolling configurable-http-proxy 5.3.0-r3 —
Wolfi rolling kubeflow-pipelines-frontend 2.17.2-r13 —
Wolfi rolling langfuse-3 +1 3.225.12-r6 —
Wolfi rolling lerna 10.1.1-r1 —
Wolfi rolling nextcloud-server-33 33.0.10-r3 —
Wolfi rolling opensearch-dashboards-3 3.9.0-r3 —
Wolfi rolling prism 5.16.0-r17 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm follow-redirects >= 1.16.0, < 1.16.1 1.16.1 GHSA-q3jh-wrc6-jgq8

Advisories 5

References