Bug 2501969 (CVE-2026-48022)

Summary: CVE-2026-48022 @hapi/wreck: @hapi/wreck: Information disclosure via incomplete origin check during redirects
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, dymurray, ibolton, jburrell, jmatthew, jmontleo, pgaikwad, rjohnson, sdawley, slucidi, sseago, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in @hapi/wreck, an HTTP client utility. This flaw allows a remote attacker to capture sensitive credentials, such as authentication tokens and session cookies, by exploiting an incomplete origin check during cross-origin redirects. The utility fails to properly validate the scheme and port, enabling credentials to be forwarded across same-host port changes or HTTPS-to-HTTP downgrades. This could lead to an attacker impersonating the victim against an upstream service, resulting in unauthorized access to information.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-07-17 22:03:24 UTC
@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.