Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.2 Node.js & npm GHSA-q3jh-wrc6-jgq8 CVE-2026-111756

follow-redirects: Array-Form Headers Bypass Cross-Origin Credential Stripping (CVE-2026-111756)

A flaw in follow-redirects versions 1.16.0 up to but not including 1.16.1 allows credential headers such as Authorization and Cookie to leak to a different host when an application supplies headers in array form. Version 1.16.1 fixes the issue.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 3 sources · updated 1 week ago

AI summary

A vulnerability has been identified in follow-redirects, a Node.js library that automatically follows HTTP and HTTPS redirects. The issue affects versions 1.16.0 up to but not including 1.16.1, and allows sensitive credential headers to be forwarded to an untrusted destination under specific conditions. A fixed version, 1.16.1, is available.

What happened

follow-redirects normally removes sensitive headers, including Authorization, Proxy-Authorization and Cookie, before following a redirect that points to a different host or downgrades the connection to a less secure protocol. This protection relies on treating the caller's headers as a plain object. However, Node's http.request API also accepts headers in an alternative array format. When headers are supplied this way, follow-redirects' removal logic fails silently: it iterates what it expects to be header names, but instead encounters array indices that never match the filter, so no headers are stripped.

Technical cause

The credential-stripping routine uses a for...in loop over the headers container, assuming it is a plain object keyed by header name. When headers are instead passed as an array (the alternating name/value format also accepted by Node's underlying http.request), for...in enumerates numeric indices such as "0" and "1" rather than header names. These indices never match the filter used to detect sensitive headers, so none are removed before the redirect is followed. This also affects the sensitiveHeaders option that was introduced to address an earlier, related issue, since it depends on the same flawed helper.

Why it matters

Any application using follow-redirects that supplies headers in array form, and that follows a redirect to a server not fully controlled by the application operator, may unintentionally forward Authorization, Cookie, or Proxy-Authorization header values to that external destination. Because the stripping failure produces no error or warning, affected applications have no built-in indication that credentials were exposed. A remote server capable of issuing a cross-origin redirect in response to a request from the vulnerable application could use this behavior to obtain those credential headers.

Who is affected

Node.js applications or services that depend on follow-redirects version 1.16.0 (prior to 1.16.1) and that construct outgoing request headers in array form rather than as a plain object. Applications that only use object-form headers are not affected by this specific bypass, though the underlying library version should still be updated.

Affected versions

follow-redirects version 1.16.0, up to but not including version 1.16.1, is affected.

Fixes and mitigation

The issue has been patched in follow-redirects version 1.16.1. Applications using an affected version should update to version 1.16.1.

Recommended action

Update follow-redirects to version 1.16.1 as soon as possible, particularly if your application code or dependencies construct request headers using the array format. After updating, review any custom redirect-following logic that relies on header stripping to confirm it behaves as expected.

PatchBriefing score

8.2 / 10 · High

Official CVSS: 8.2

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS 0.0051 (36 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

follow-redirects >= 1.16.0, < 1.16.1
vulnerable
follow-redirects ≥ 1.16.0 < 1.16.1
vulnerable
≥ 1.16.1
patched

Reported fixes

The issue has been patched in follow-redirects version 1.16.1. Applications using an affected version should update to version 1.16.1.

How this was built

3 source records were collected, matched and used to prepare the report above.

  • GitHub Advisory Database database
  • NVD (NIST) database
  • OSV.dev database
Unified report
follow-redirects: Array-Form Headers Bypass Cross-Origin Credential Stripping (CVE-2026-111756)
1 article · 3 sources cited
Revision history
  1. Published
  2. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email