{"id":"CVE-2026-48022","aliases":["GHSA-x426-x7cc-3fpc"],"summary":"@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects","published_at":"2026-06-11T13:27:05Z","modified_at":"2026-11-04T11:10:07Z","products":[],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0017600000137463212,"percentile":0.07240000367164612,"date":"2026-11-19T00:00:00Z"},"priority":8,"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"hapijs/wreck","versions":["< 18.1.2"],"provider":"cvelistv5","source":"CVE-2026-48022","relation":"self"},{"ecosystem":"TuxCare:npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789068952","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792177263","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"hapi-wreck","purl":"pkg:npm/hapi-wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789068952","relation":"upstream"},{"ecosystem":"npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"18.1.2"}]}],"fixed":["18.1.2"],"provider":"osv","source":"GHSA-x426-x7cc-3fpc","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Containers","cpe":"cpe:/a:redhat:rhmt:1","status":"affected","packages":["rhmtc/openshift-migration-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-48022"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-48022"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1789068952","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1789068952","published_at":"2026-09-10T19:35:52Z","modified_at":"2026-10-15T09:47:55.817789Z","summary":"TuxCare security update for 2 packages (2 CVEs)","details":"TuxCare rebuilt 2 packages to address 2 CVEs. Fixed in 17.2.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789068952","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"hapi-wreck","purl":"pkg:npm/hapi-wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789068952","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1792177263","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1792177263","published_at":"2026-10-16T19:01:03Z","modified_at":"2026-10-30T19:45:13.893244Z","summary":"TuxCare security update for @hapi/wreck (2 CVEs)","details":"TuxCare rebuilt @hapi/wreck to address 2 CVEs. Fixed in 17.2.0-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0-tuxcare.0"},{"fixed":"17.2.0-tuxcare.1"}]}],"versions":["17.2.0"],"fixed":["17.2.0-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1792177263","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-48022","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-48022","license":"CC-BY-4.0","published_at":"2026-07-17T21:02:05.98Z","modified_at":"2026-07-20T19:10:59.345Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"CVE-2026-48022"}],"affected":[{"ecosystem":"CVE","package":"hapijs/wreck","versions":["< 18.1.2"],"provider":"cvelistv5","source":"CVE-2026-48022","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc"},{"type":"WEB","url":"https://github.com/hapijs/wreck/pull/313"},{"type":"WEB","url":"https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e"},{"type":"WEB","url":"https://github.com/hapijs/wreck/releases/tag/v18.1.2"}]},{"provider":"osv","source_id":"GHSA-x426-x7cc-3fpc","relation":"self","url":"https://osv.dev/vulnerability/GHSA-x426-x7cc-3fpc","license":"CC-BY-4.0","published_at":"2026-06-11T13:27:05Z","modified_at":"2026-09-10T03:50:51.210459Z","summary":"@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects","details":"### Impact\nWreck 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.\n\n### Patches\nUpgrade to >= 18.1.2.\n\n### Workarounds\n- Set `redirects: 0` (default) and handle redirects manually with a strict origin check.\n- Use the `beforeRedirect` hook to inspect the redirect target and abort or strip sensitive headers before the follow-on request.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"GHSA-x426-x7cc-3fpc"}],"affected":[{"ecosystem":"npm","package":"@hapi/wreck","purl":"pkg:npm/%40hapi/wreck","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"18.1.2"}]}],"fixed":["18.1.2"],"provider":"osv","source":"GHSA-x426-x7cc-3fpc","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc"},{"type":"WEB","url":"https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e"},{"type":"PACKAGE","url":"https://github.com/hapijs/wreck"}]},{"provider":"redhat-vex","source_id":"CVE-2026-48022","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-48022","license":"CC-BY-4.0","published_at":"2026-07-17T21:02:05.98Z","modified_at":"2026-11-04T11:10:07Z","summary":"@hapi/wreck: @hapi/wreck: Information disclosure via incomplete origin check during redirects","details":"A flaw was found in @hapi/wreck, an HTTP client utility. This flaw allows a remote attacker to capture sensitive credentials, such as authentication tokens and session cookies, by exploiting an incomplete origin check during cross-origin redirects. The utility fails to properly validate the scheme and port, enabling credentials to be forwarded across same-host port changes or HTTPS-to-HTTP downgrades. This could lead to an attacker impersonating the victim against an upstream service, resulting in unauthorized access to information.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"CVE-2026-48022"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-48022"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Containers","cpe":"cpe:/a:redhat:rhmt:1","status":"affected","packages":["rhmtc/openshift-migration-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-48022"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-48022"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48022.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-48022"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2501969"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-48022"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48022"},{"type":"WEB","url":"https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e"},{"type":"WEB","url":"https://github.com/hapijs/wreck/pull/313"},{"type":"WEB","url":"https://github.com/hapijs/wreck/releases/tag/v18.1.2"},{"type":"WEB","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc"}]}],"references":[{"type":"WEB","url":"https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc"},{"type":"WEB","url":"https://github.com/hapijs/wreck/pull/313"},{"type":"WEB","url":"https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e"},{"type":"WEB","url":"https://github.com/hapijs/wreck/releases/tag/v18.1.2"},{"type":"PACKAGE","url":"https://github.com/hapijs/wreck"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-48022.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-48022"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2501969"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-48022"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48022"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1789068952","url":"https://osv.dev/vulnerability/CLSA-2026-1789068952","modified_at":"2026-10-15T09:47:55.817789Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1792177263","url":"https://osv.dev/vulnerability/CLSA-2026-1792177263","modified_at":"2026-10-30T19:45:13.893244Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-48022","url":"https://www.cve.org/CVERecord?id=CVE-2026-48022","license":"CC-BY-4.0","modified_at":"2026-07-20T19:10:59.345Z","relation":"self"},{"provider":"osv","source_id":"GHSA-x426-x7cc-3fpc","url":"https://osv.dev/vulnerability/GHSA-x426-x7cc-3fpc","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:51.210459Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-48022","url":"https://access.redhat.com/security/cve/CVE-2026-48022","license":"CC-BY-4.0","modified_at":"2026-11-04T11:10:07Z","relation":"self"}]}
