Repository navigation
chore(deps): update dependency follow-redirects to v1.16.2 [security] - autoclosed - #5021
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
5 tasks done
renovate
Bot
force-pushed
the
renovate/npm-follow-redirects-vulnerability
branch
2 times, most recently
from
October 31, 2026 00:38
1253d90 to
93cf80c
Compare
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Bun audit fails CI ready (Security) on this train and on main since GHSA-mrwp-f3q8-3g9p (high) was published for follow-redirects >=1.16.0 <=1.16.1: Security run 41158412271 (job 124410300335) on the train head 7c76ccd, and Security run 41150926316 (job 124386990893) on main 06fe859. It is the only high finding, and the audit gates at high. The root overrides pin follow-redirects, so the pin and its bun.lock entry move to 1.16.2, the fixed release. This is the same change as Renovate's 93cf80c in #5021 against main: once main takes it, the rebase of release/0.6 onto main finds this commit empty and drops it.
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Bun audit fails CI ready (Security) on this train and on main since GHSA-mrwp-f3q8-3g9p (high) was published for follow-redirects >=1.16.0 <=1.16.1: Security run 41158412271 (job 124410300335) on the train head 7c76ccd, and Security run 41150926316 (job 124386990893) on main 06fe859. It is the only high finding, and the audit gates at high. The root overrides pin follow-redirects, so the pin and its bun.lock entry move to 1.16.2, the fixed release. This is the same change as Renovate's 93cf80c in #5021 against main: once main takes it, the rebase of release/0.6 onto main finds this commit empty and drops it.
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Bun audit fails CI ready (Security) on this train and on main since GHSA-mrwp-f3q8-3g9p (high) was published for follow-redirects >=1.16.0 <=1.16.1: Security run 41158412271 (job 124410300335) on the train head 7c76ccd, and Security run 41150926316 (job 124386990893) on main 06fe859. It is the only high finding, and the audit gates at high. The root overrides pin follow-redirects, so the pin and its bun.lock entry move to 1.16.2, the fixed release. This is the same change as Renovate's 93cf80c in #5021 against main: once main takes it, the rebase of release/0.6 onto main finds this commit empty and drops it.
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
Bun audit fails CI ready (Security) on this train and on main since GHSA-mrwp-f3q8-3g9p (high) was published for follow-redirects >=1.16.0 <=1.16.1: Security run 41158412271 (job 124410300335) on the train head 7c76ccd, and Security run 41150926316 (job 124386990893) on main 06fe859. It is the only high finding, and the audit gates at high. The root overrides pin follow-redirects, so the pin and its bun.lock entry move to 1.16.2, the fixed release. This is the same change as Renovate's 93cf80c in #5021 against main: once main takes it, the rebase of release/0.6 onto main finds this commit empty and drops it.
tale-code-bot
added a commit
that referenced
this pull request
Nov 1, 2026
Bun audit fails CI ready (Security) on this train and on main since GHSA-mrwp-f3q8-3g9p (high) was published for follow-redirects >=1.16.0 <=1.16.1: Security run 41158412271 (job 124410300335) on the train head 7c76ccd, and Security run 41150926316 (job 124386990893) on main 06fe859. It is the only high finding, and the audit gates at high. The root overrides pin follow-redirects, so the pin and its bun.lock entry move to 1.16.2, the fixed release. This is the same change as Renovate's 93cf80c in #5021 against main: once main takes it, the rebase of release/0.6 onto main finds this commit empty and drops it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.16.1→1.16.2Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
CVE-2026-116689 / GHSA-mrwp-f3q8-3g9p
More information
Details
Summary
follow-redirects 1.16.0 and 1.16.1 validate the documented sensitiveHeaders option with instanceof Array. An array created in another JavaScript realm is silently replaced with an empty list, so a caller-declared custom credential header can be forwarded to an attacker-controlled cross-origin redirect destination.
Details
Affected versions
The sensitiveHeaders option was introduced in 1.16.0. Published 1.16.0 and 1.16.1 both reproduced, giving a tested affected range of 1.16.0 through 1.16.1. The source checkout was pinned at revision 46301256333c90b7faac7aa126effe72ec16d16e; the exact npm 1.16.1 artifact reproduced independently.
Root cause
index.js resets options.sensitiveHeaders when its local isArray() helper returns false. That helper uses value instanceof Array, which depends on realm identity. The same file already uses Array.isArray(options.headers), which correctly recognizes arrays across realms.
Suggested remediation
Use Array.isArray(value) for sensitiveHeaders, then validate and normalize each member as a header-name string. Add same-realm and node:vm cross-realm tests for cross-origin redirects, including the array-form headers representation. Verify that custom sensitive names are removed while unrelated headers remain unchanged.
Duplicate review
The public advisory history contains other sensitive-header findings, including array-form headers and regular-expression handling, but focused repository searches found no report describing cross-realm validation as of 2026-10-25. A private or differently worded report may already exist.
Proof of concept
Start two loopback HTTP servers. The first returns a 302 redirect to the second. Send X-API-Key and list that name in sensitiveHeaders, then compare a normal array with a genuine cross-realm array created by:
Observed against both source and the exact npm 1.16.1 package:
The complete 3.5 KB loopback-only harness and raw JSON output are available privately.
Impact
custom credential disclosure. Exploitation requires a direct caller or wrapper that preserves a cross-realm sensitiveHeaders array, a custom credential listed in that option, and an attacker-controlled or compromised endpoint that returns a cross-origin redirect. The directly demonstrated result is disclosure of the custom header value, potentially exposing an API key or service token until revocation.
Built-in Authorization, Proxy-Authorization, and Cookie protections remained effective. Exact Axios 1.20.0 with follow-redirects 1.16.1 did not reproduce because Axios normalized the array; this report does not claim that Axios is affected. No third-party service was tested.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
follow-redirects/follow-redirects (follow-redirects)
v1.16.2Compare Source
Configuration
📅 Schedule: (in timezone Europe/Zurich)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.