CVE-2026-48022
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
@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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
@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.
- Record
CVE-2026-48022- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-319, CWE-346, CWE-522
- Updated
- 2026-11-02
EUVDEUVD-2026-45340
6.5
@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.
- Record
EUVD-2026-45340- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-x426-x7cc-3fpc
6.5
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
Impact
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.
Patches
Upgrade to >= 18.1.2.
Workarounds
- Set
redirects: 0(default) and handle redirects manually with a strict origin check. - Use the
beforeRedirecthook to inspect the redirect target and abort or strip sensitive headers before the follow-on request.
- Record
GHSA-x426-x7cc-3fpc- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-319, CWE-346, CWE-522, CWE-940
- Updated
- 2026-11-02
NVD
6.5
@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.
- Record
CVE-2026-48022- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-319, CWE-346, CWE-522
- Updated
- 2026-11-02
OSV
6.5
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
@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.
- Record
CVE-2026-48022- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-319, CWE-346, CWE-522
- Updated
- 2026-11-02
OSVGHSA-x426-x7cc-3fpc
6.5
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
Impact
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.
Patches
Upgrade to >= 18.1.2.
Workarounds
- Set
redirects: 0(default) and handle redirects manually with a strict origin check. - Use the
beforeRedirecthook to inspect the redirect target and abort or strip sensitive headers before the follow-on request.
- Record
GHSA-x426-x7cc-3fpc- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-319, CWE-346, CWE-522, CWE-940
- Updated
- 2026-11-02
OSVCLSA-2026-1789068952 No score
TuxCare security update for 2 packages (2 CVEs)
TuxCare rebuilt 2 packages to address 2 CVEs. Fixed in 17.2.0-tuxcare.1.
- Record
CLSA-2026-1789068952- Updated
- 2026-11-02
OSVCLSA-2026-1792177263 No score
TuxCare security update for @hapi/wreck (2 CVEs)
TuxCare rebuilt @hapi/wreck to address 2 CVEs. Fixed in 17.2.0-tuxcare.1.
- Record
CLSA-2026-1792177263- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2026-48022 No score
CVE-2026-48022 in @rootio/hapi__wreck - Patched by Root
Root has patched CVE-2026-48022 in the @rootio/hapi__wreck package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2026-48022- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@hapi/wrecknpm |
before 18.1.2 | 18.1.2 |
@hapi/wreckTuxCare:npm From an advisory covering 2 CVEs |
17.2.0-tuxcare.0 up to 17.2.0-tuxcare.1, plus listed versions 17.2.0 |
17.2.0-tuxcare.1 |
hapi-wreckTuxCare:npm From an advisory covering 2 CVEs |
17.2.0-tuxcare.0 up to 17.2.0-tuxcare.1, plus listed versions 17.2.0 |
17.2.0-tuxcare.1 |
@rootio/hapi__wreckRoot:npm |
before 18.1.0-root.io.2 | 18.1.0-root.io.217.2.0-root.io.2 |
@hapi/wreckRoot:npm |
before 18.1.0-aikido.2 | 18.1.0-aikido.217.2.0-aikido.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-48022 is a medium vulnerability (CVSS 6.5) in Hapijs Wreck, published June 11, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 7th percentile. Fixed in @hapi/wreck 18.1.2.
References
github.com/hapijs/wreck/security/advisories/GHSA-x426-x7cc-3fpc
github.com/hapijs/wreck/pull/313
github.com/hapijs/wreck/commit/b93323b63ad3adb14d2b4019d77219182211641e
github.com/hapijs/wreck/releases/tag/v18.1.2
github.com/advisories/GHSA-x426-x7cc-3fpc
github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48022.json
nvd.nist.gov/vuln/detail/CVE-2026-48022
github.com/hapijs/wreck