CVE-2026-44979

@hapi/wreck : Sensitive `Proxy-Authorization` header leaked across cross-hostname redirects

Published Jul 17, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
First Time appeared Hapijs
Hapijs wreck
Vendors & Products Hapijs
Hapijs wreck
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-522

    Insufficiently Protected Credentials

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 2:35 PM
Reserved
May 8, 2026, 4:23 PM
Status
Deferred
Published
Jul 17, 2026, 10:17 PM
Modified
Oct 24, 2026, 8:10 PM