CVE-2026-48022
published medium CVSS 3.1 · 6.5@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hapijs | — | wreck< 18.1.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hapijs | wreck | < 18.1.2 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-319 CWE-319: Cleartext Transmission of Sensitive Information
- CWE-346 CWE-346: Origin Validation Error
- CWE-522 CWE-522: Insufficiently Protected Credentials
References
4Provider assertions
2GitHub_M · cna
@hapi/wreck: Sensitive credential headers leak across cross-port and cross-scheme redirects
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a63575a2315d7069a20137aa3f97ee74479467a8d0004cc3b3f9e0ab51b2682d
- Ingested
- 23 Sep 2026, 09:17:17 UTC
- Source record
- Official CVE record