Executive brief
@hapi/wreck is a software tool used by developers to make web requests. A security issue was found where the tool fails to remove sensitive proxy login information when it is automatically redirected from one website to another. This could allow an untrusted third-party website to steal credentials used to access your organization's internal network or proxy services.
Technical details
An information disclosure vulnerability exists in @hapi/wreck prior to version 18.1.1. When the library is configured to follow HTTP redirects (via the 'redirects' option), it correctly strips 'Authorization' and 'Cookie' headers when moving to a different hostname, but fails to strip the 'Proxy-Authorization' header. This allows the sensitive proxy credential header to be forwarded to the redirect target. An attacker who controls a URL that a vulnerable application requests can trigger a 3xx redirect to a server they control to capture these credentials. The vulnerability is patched in version 18.1.1.
Affected products
- hapi wreck < 18.1.1
Timeline
- 2026-05-04: other: Initial fix committed to repository
- 2026-05-06: patched: Version 18.1.1 released
- 2026-05-20: advisory: GitHub Security Advisory published
- 2026-07-17: disclosed: CVE published to NVD