Description
@hapi/wreck is an HTTP client utility. Prior to 18.1.1, when @hapi/wreck follows a 3xx redirect to a different hostname, only the Authorization and Cookie headers are stripped, and the standard credential header Proxy-Authorization is forwarded intact to the redirect target, potentially exposing forward-proxy credentials to a host outside the original trust boundary when redirects are enabled through the redirects option or Wreck.defaults({ redirects: ... }). This issue is fixed in version 18.1.1.
Published: 2026-07-17
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in @hapi/wreck, an HTTP client library. When it follows a 3xx redirect to a different hostname, the library strips only the Authorization and Cookie headers but fails to remove the Proxy‑Authorization header. Consequently, proxy credentials are forwarded to the redirect target, potentially leaking sensitive authentication information to an external host if redirects are enabled. The issue results in the disclosure of forward‑proxy credentials but does not allow code execution, escalation of privileges, or persistence.

Affected Systems

The flaw affects all versions of hapijs:wreck older than 18.1.1 that are used in Node.js applications where redirects are enabled via the redirects option or Wreck.defaults({ redirects: ... }). Any deployment that employs the legacy 3xx redirect handling of this library is susceptible.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score is less than 1 %, showing a very low likelihood of active exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The most plausible attack vector is a crafted request that triggers a cross‑hostname redirect, thereby leaking the Proxy‑Authorization header to the attacker’s controlled host. No privilege escalation or persistence is required; the impact is limited to credential disclosure.

Generated by OpenCVE AI on August 1, 2026 at 08:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade hapijs:wreck to version 18.1.1 or later to prevent the header from being forwarded.
  • If upgrading is not immediately possible, configure the client with redirects disabled (e.g., Wreck.defaults({ redirects: 0 })) so that no 3xx redirects are followed.
  • Ensure that no Proxy‑Authorization header is included in requests that may be redirected, or strip it manually before sending the request.

Generated by OpenCVE AI on August 1, 2026 at 08:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vhjm-w67q-g75c @hapi/wreck leaks sensitive `Proxy-Authorization` header across cross-hostname redirects
History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Hapijs
Hapijs wreck
Vendors & Products Hapijs
Hapijs wreck

Mon, 20 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Description @hapi/wreck is an HTTP client utility. Prior to 18.1.1, when @hapi/wreck follows a 3xx redirect to a different hostname, only the Authorization and Cookie headers are stripped, and the standard credential header Proxy-Authorization is forwarded intact to the redirect target, potentially exposing forward-proxy credentials to a host outside the original trust boundary when redirects are enabled through the redirects option or Wreck.defaults({ redirects: ... }). This issue is fixed in version 18.1.1.
Title @hapi/wreck : Sensitive `Proxy-Authorization` header leaked across cross-hostname redirects
Weaknesses CWE-200
CWE-522
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T14:35:45.343Z

Reserved: 2026-05-08T16:23:33.264Z

Link: CVE-2026-44979

cve-icon Vulnrichment

Updated: 2026-07-20T14:35:41.555Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:15:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-522

    Insufficiently Protected Credentials