CVE-2026-44979
ADVISORY - githubSummary
Impact
When @hapi/wreck follows a 3xx redirect to a different hostname, only the Authorization and Cookie headers are stripped. The standard credential header Proxy-Authorization is 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/wreck 18.1.1 extends the cross-hostname strip set to include proxy-authorization. Upgrade to 18.1.1 or later.
Workarounds
If upgrading is not immediately possible:
- Leave redirects at its default (
false) — applications that never enable redirect following are not affected. - If redirects are required, set redirects: 0 when calling endpoints with sensitive headers, or strip Proxy-Authorization from the headers before issuing the request.
- Use the
beforeRedirecthook to manually strip proxy-authorization (and any other sensitive application headers) whenredirectOptionstargets a different hostname than the original request.
Resources
- Related: CVE-2024-30260 / GHSA-3787-6prv-h9w3 (undici)
- RFC 7235 §4.4 — Proxy-Authorization
Common Weakness Enumeration (CWE)
GitHub
CVSS SCORE
6.3mediumChainguard
CGA-hwpm-5pqw-wmhm
-
minimos
MINI-2j25-9grm-g845
-
minimos
MINI-3627-mqwj-f8wm
-
minimos
MINI-5g7p-cj84-5pw7
-
minimos
MINI-6465-gmv3-chr6
-
minimos
MINI-677j-53q5-h352
-
minimos
MINI-8cf7-9rrw-qf7x
-
minimos
MINI-gg7w-7x93-j72j
-
minimos
MINI-p8mj-wp34-6px4
-
minimos
MINI-vv84-q7hx-772g
-
minimos
MINI-xh7g-6qxf-6cr7
-