Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/wreck
  4. ›
  5. CVE-2026-48022

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

June 11, 2026

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

References

  • github.com/advisories/GHSA-x426-x7cc-3fpc
  • github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e
  • github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc
  • nvd.nist.gov/vuln/detail/CVE-2026-48022

Code Behaviors & Features

Detect and mitigate CVE-2026-48022 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 18.1.2

Fixed versions

  • 18.1.2

Solution

Upgrade to version 18.1.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-319: Cleartext Transmission of Sensitive Information
  • CWE-346: Origin Validation Error
  • CWE-522: Insufficiently Protected Credentials
  • CWE-940: Improper Verification of Source of a Communication Channel

Source file

npm/@hapi/wreck/CVE-2026-48022.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.