CVE-2026-48022: CWE-319: Cleartext Transmission of Sensitive Information in hapijs wreck
@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.
AI Analysis
Technical Summary
The hapijs wreck library versions before 18.1.2 improperly handle credential headers during cross-origin redirects. While Wreck strips Authorization, Cookie, and Proxy-Authorization headers before following redirects, its origin check only compares hostnames and ignores scheme and port. This flaw permits credentials to be forwarded when redirects change the port or downgrade from HTTPS to HTTP on the same hostname. An attacker controlling a co-tenant on an adjacent port or able to forge redirects can capture sensitive credentials and impersonate the victim against upstream services. The vulnerability is addressed by updating to version 18.1.2.
Potential Impact
An attacker capable of inducing a redirect to a same-host different port or HTTPS-to-HTTP downgrade can capture sensitive authentication credentials such as bearer tokens, session cookies, and proxy credentials. This enables impersonation of the victim user against the upstream service. The vulnerability does not impact availability or integrity but compromises confidentiality of sensitive information.
Mitigation Recommendations
Upgrade hapijs wreck to version 18.1.2 or later, where this issue is fixed. Patch status is confirmed by the version fix noted in the description. No additional mitigations are specified.
CVE-2026-48022: CWE-319: Cleartext Transmission of Sensitive Information in hapijs wreck
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.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The hapijs wreck library versions before 18.1.2 improperly handle credential headers during cross-origin redirects. While Wreck strips Authorization, Cookie, and Proxy-Authorization headers before following redirects, its origin check only compares hostnames and ignores scheme and port. This flaw permits credentials to be forwarded when redirects change the port or downgrade from HTTPS to HTTP on the same hostname. An attacker controlling a co-tenant on an adjacent port or able to forge redirects can capture sensitive credentials and impersonate the victim against upstream services. The vulnerability is addressed by updating to version 18.1.2.
Potential Impact
An attacker capable of inducing a redirect to a same-host different port or HTTPS-to-HTTP downgrade can capture sensitive authentication credentials such as bearer tokens, session cookies, and proxy credentials. This enables impersonation of the victim user against the upstream service. The vulnerability does not impact availability or integrity but compromises confidentiality of sensitive information.
Mitigation Recommendations
Upgrade hapijs wreck to version 18.1.2 or later, where this issue is fixed. Patch status is confirmed by the version fix noted in the description. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T17:44:09.587Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5b401a34329bf928c718c3
Added to database: 07/18/2026, 08:58:02 UTC
Last enriched: 07/25/2026, 22:44:45 UTC
Last updated: 09/01/2026, 01:35:52 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.