GHSA-vhjm-w67q-g75c

Suggest an improvement
Source
https://github.com/advisories/GHSA-vhjm-w67q-g75c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vhjm-w67q-g75c/GHSA-vhjm-w67q-g75c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vhjm-w67q-g75c
Aliases
  • CVE-2026-44979
Downstream
Related
Published
2026-05-27T00:38:09Z
Modified
2026-05-29T01:30:12.684936277Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
@hapi/wreck leaks sensitive `Proxy-Authorization` header across cross-hostname redirects
Details

Impact

When @hapi/wreck follows a 3xx redirect to a different hostname, only the Authorization and Cookie headers are stripped. 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.

Redirect following is opt-in. The redirects option defaults to false (no redirections followed), so applications are only affected if they have explicitly set redirects to a positive integer on the request or via Wreck.defaults({ redirects: ... }).

Patches

@hapi/wreck 18.1.1 extends the cross-hostname strip set to include proxy-authorization. Upgrade to 18.1.1 or later.

Workarounds

If upgrading is not immediately possible: - Leave redirects at its default (false) — applications that never enable redirect following are not affected. - If redirects are required, set redirects: 0 when calling endpoints with sensitive headers, or strip Proxy-Authorization from the headers before issuing the request. - Use the beforeRedirect hook to manually strip proxy-authorization (and any other sensitive application headers) when redirectOptions targets a different hostname than the original request.

Resources

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-27T00:38:09Z",
    "nvd_published_at": null,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-200",
        "CWE-522"
    ]
}
References

Affected packages

npm / @hapi/wreck

Package

Name
@hapi/wreck
View open source insights on deps.dev
Purl
pkg:npm/%40hapi%2Fwreck

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
18.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vhjm-w67q-g75c/GHSA-vhjm-w67q-g75c.json"