CVE-2026-48022 Details
Description
@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.
A vulnerability in the @hapi/wreck HTTP client utility, affecting versions prior to 18.1.2, allows for the leakage of sensitive credential headers, including Authorization, Cookie, and Proxy-Authorization, across cross-origin redirects. While Wreck removes these headers before following a redirect, the origin check only compares hostnames, ignoring the scheme and port. This oversight enables the forwarding of credentials intact during same-host port changes and HTTPS-to-HTTP downgrades. Consequently, a co-tenant on an adjacent port or a network-position attacker capable of forging a redirect could capture bearer tokens, session cookies, and proxy credentials, potentially allowing impersonation of the victim against the upstream service.
Users are advised to upgrade to version 18.1.2 or later. For those unable to upgrade, set 'redirects' to 0 and handle redirects manually with a strict origin check, or use the 'beforeRedirect' hook to inspect the redirect target and strip sensitive headers before following the redirect.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e | [email protected] | Source CodeVendor |
| https://github.com/hapijs/wreck/pull/313 | [email protected] | Issue TrackingVendor |
| https://github.com/hapijs/wreck/releases/tag/v18.1.2 | [email protected] | Release NotesVendor |
| https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-319 | Cleartext Transmission of Sensitive Information | [email protected] |
| CWE-346 | Origin Validation Error | [email protected] |
| CWE-522 | Insufficiently Protected Credentials | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @hapi/wreck | < 18.1.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | New CVE Received | [email protected] |
Volerion