{"id":"GHSA-vhjm-w67q-g75c","revision":"47914b1153e54a1eb63fbf6b6f9f9ef0","records":[{"revision":"47914b1153e54a1eb63fbf6b6f9f9ef0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vhjm-w67q-g75c","aliases":["CVE-2026-44979"],"title":"@hapi/wreck leaks sensitive `Proxy-Authorization` header across cross-hostname redirects","description":"### 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)","state":0,"publishedAt":"2026-05-27T00:38:09+00:00","modifiedAt":"2026-09-10T03:50:47.7108496+00:00","affected":[{"ecosystem":"npm","name":"@hapi/wreck","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"18.1.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/hapijs/wreck/security/advisories/GHSA-vhjm-w67q-g75c","https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3","https://github.com/hapijs/wreck/commit/a5b6fac9c684621c1d5733d10a0257697cfea373","https://github.com/hapijs/wreck"],"sourceUrl":"https://github.com/advisories/GHSA-vhjm-w67q-g75c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vhjm-w67q-g75c","identifiers":["GHSA-vhjm-w67q-g75c","CVE-2026-44979"]},"retained":false,"historicalAffected":[]}],"coverage":[]}