{"id":"GHSA-vhjm-w67q-g75c","summary":"@hapi/wreck leaks sensitive `Proxy-Authorization` header across cross-hostname redirects","details":"### Impact\nWhen `@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.\n\nRedirect 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: ... })`.\n\n### Patches\n`@hapi/wreck` 18.1.1 extends the cross-hostname strip set to include `proxy-authorization`. Upgrade to 18.1.1 or later.\n\n### Workarounds\nIf upgrading is not immediately possible:\n- Leave redirects at its default (`false`) — applications that never enable redirect following are not affected.\n- If redirects are required, set redirects: 0 when calling endpoints with sensitive headers, or strip Proxy-Authorization from the headers before issuing the request.\n- Use the `beforeRedirect` hook to manually strip proxy-authorization (and any other sensitive application headers) when `redirectOptions` targets a different hostname than the original request.\n\n### Resources\n- Related: [CVE-2024-30260 / GHSA-3787-6prv-h9w3 ](https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3)(undici)\n- [RFC 7235 §4.4 — Proxy-Authorization](https://datatracker.ietf.org/doc/html/rfc7235#section-4.4)","aliases":["CVE-2026-44979"],"modified":"2026-08-24T00:36:51.154065647Z","published":"2026-05-27T00:38:09Z","database_specific":{"cwe_ids":["CWE-200","CWE-522"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-05-27T00:38:09Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-vhjm-w67q-g75c"},{"type":"WEB","url":"https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3"},{"type":"WEB","url":"https://github.com/hapijs/wreck/commit/a5b6fac9c684621c1d5733d10a0257697cfea373"},{"type":"PACKAGE","url":"https://github.com/hapijs/wreck"}],"affected":[{"package":{"name":"@hapi/wreck","ecosystem":"npm","purl":"pkg:npm/%40hapi/wreck"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"18.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vhjm-w67q-g75c/GHSA-vhjm-w67q-g75c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"}]}