fix(deps): update dependency @hapi/wreck to v18.1.2 [security] - #537
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency @hapi/wreck to v18.1.2 [security]#537renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
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:
18.0.0→18.1.2@hapi/wreck leaks sensitive
Proxy-Authorizationheader across cross-hostname redirectsCVE-2026-44979 / GHSA-vhjm-w67q-g75c
More information
Details
Impact
When
@hapi/wreckfollows a 3xx redirect to a different hostname, only theAuthorizationandCookieheaders are stripped. The standard credential headerProxy-Authorizationis forwarded intact to the redirect target, potentially exposing forward-proxy credentials to a host outside the original trust boundary.Redirect following is opt-in. The redirects option defaults to false (no redirections followed), so applications are only affected if they have explicitly set redirects to a positive integer on the request or via
Wreck.defaults({ redirects: ... }).Patches
@hapi/wreck18.1.1 extends the cross-hostname strip set to includeproxy-authorization. Upgrade to 18.1.1 or later.Workarounds
If upgrading is not immediately possible:
false) — applications that never enable redirect following are not affected.beforeRedirecthook to manually strip proxy-authorization (and any other sensitive application headers) whenredirectOptionstargets a different hostname than the original request.Resources
Severity
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
CVE-2026-48022 / GHSA-x426-x7cc-3fpc
More information
Details
Impact
Wreck strips credential headers (Authorization, Cookie, Proxy-Authorization) before following a cross-origin redirect, but the origin check compares hostnames only and ignores scheme and port. As a result, credentials are forwarded intact across same-host port changes and HTTPS-to-HTTP downgrades, allowing a co-tenant on an adjacent port or a network-position attacker capable of forging a redirect to capture bearer tokens, session cookies, and proxy credentials and impersonate the victim against the upstream service. The fix replaces the hostname comparison with a full-origin comparison (scheme, host, and port), aligning the behavior with the WHATWG Fetch same-origin definition used by browsers.
Patches
Upgrade to >= 18.1.2.
Workarounds
redirects: 0(default) and handle redirects manually with a strict origin check.beforeRedirecthook to inspect the redirect target and abort or strip sensitive headers before the follow-on request.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
hapijs/wreck (@hapi/wreck)
v18.1.2Compare Source
v18.1.1Compare Source
v18.1.0Compare Source
v18.0.2Compare Source
v18.0.1Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.