CVE-2026-48022
@hapi/wreck is an HTTP client utility. Prior to 18.1.2, Wreck …
@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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc
- github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e
- github.com/advisories/GHSA-x426-x7cc-3fpc
- github.com/hapijs/wreck/pull/313
- github.com/hapijs/wreck/releases/tag/v18.1.2
- nvd.nist.gov/vuln/detail/CVE-2026-48022
- cve.org/CVERecord?id=CVE-2026-48022
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.