{"id":"CVE-2026-48022","summary":"@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects","details":"@hapi/wreck is an HTTP client utility. Prior to 18.1.2, Wreck strips credential headers including Authorization, Cookie, and Proxy-Authorization before following a cross-origin redirect, but the origin check compares hostnames only and ignores scheme and port, so 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. This issue is fixed in version 18.1.2.","aliases":["GHSA-x426-x7cc-3fpc"],"modified":"2026-07-21T03:42:01.086573390Z","published":"2026-07-17T21:02:05.980Z","related":["CGA-782w-pqj4-7xvq"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48022.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-319","CWE-346","CWE-522"]},"references":[{"type":"WEB","url":"https://github.com/hapijs/wreck/releases/tag/v18.1.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48022.json"},{"type":"ADVISORY","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48022"},{"type":"FIX","url":"https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e"},{"type":"FIX","url":"https://github.com/hapijs/wreck/pull/313"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hapijs/wreck","events":[{"introduced":"0"},{"fixed":"b93323b63ad3adb14d2b4019d77219182211641e"},{"fixed":"68ec5e8414d8f1c8f17407d846cb72199260b4b2"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"18.1.2"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v18.1.1","v18.1.0","v18.0.2","v18.0.1","v18.0.0","v17.2.0","v17.1.0","v17.0.0","v15.1.0","v16.0.1","v16.0.0","v15.0.2","v15.0.1","v15.0.0","v14.2.0","v14.1.4","v14.1.3","v14.1.2","v14.1.0","v14.0.2","v14.0.1","v14.0.0","v13.0.3","v13.0.1","v12.5.0","v13.0.0","v12.4.0","v12.3.0","v12.2.3","v12.2.2","v12.2.1","v12.2.0","v12.1.0","v12.0.0","v11.0.0","v10.0.0","v9.0.0","v8.0.1","v8.0.0","v7.2.1","v7.2.0","v7.1.0","v7.0.2","v7.0.1","v7.0.0","v6.3.0","v6.2.0","v6.1.0","v6.0.0","v5.6.1","v5.6.0","v5.5.1","v5.5.0","v5.4.0","v5.3.0","v5.2.0","v5.1.0","v5.0.1","v5.0.0","v4.0.0","v3.0.0","v2.5.5","v2.5.4","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.0","v2.3.0","v2.2.0","v2.1.0","v2.0.0","v1.0.0","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48022.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}