CVE-2026-48022 @hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
An attacker can capture sensitive credentials like tokens and cookies by exploiting a flaw in cross-origin redirect handling that ignores scheme and port changes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-48022?
CVE-2026-48022 is a medium-severity vulnerability in hapijs wreck, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2026-48022?
2 open source packages ship an affected version, including @hapi/wreck.
| Package | Affected | Fixed in |
|---|---|---|
@hapi/wreck npm | All versions | 18.1.2 |
@hapi/wreck npm | All versions | 18.1.2 |
How do I fix CVE-2026-48022?
Upgrade @hapi/wreck to 18.1.2 or later.
Is CVE-2026-48022 being exploited?
There is no known exploitation of CVE-2026-48022 in the wild and no public exploit code.
Sources
Also known as GHSA-x426-x7cc-3fpc, MINI-3478-4g29-54qw, MINI-4858-rr3g-gvhm, MINI-4gm5-8q5x-rx9r, MINI-6q84-77wm-wr7r, MINI-748x-xv56-r9v7 and 11 more.