Insufficiently Protected Credentials Affecting @hapi/wreck package, versions <18.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-HAPIWRECK-16881586
  • published27 May 2026
  • disclosed27 May 2026
  • creditIlsun Choi

Introduced: 27 May 2026

NewCVE-2026-44979  (opens in a new tab)
CWE-522  (opens in a new tab)

How to fix?

Upgrade @hapi/wreck to version 18.1.1 or higher.

Overview

@hapi/wreck is a HTTP Client Utilities library.

Affected versions of this package are vulnerable to Insufficiently Protected Credentials due to leaking the sensitive Proxy-Authorization header across cross-hostname redirects. An attacker can obtain sensitive proxy credentials by inducing a redirect to a malicious host, which receives the unstripped Proxy-Authorization header.

Note:

This is only exploitable if redirect following is explicitly enabled by setting the redirects option to a positive integer.

Workaround

This vulnerability can be mitigated by leaving redirects at its default value (false), manually stripping the Proxy-Authorization header before issuing requests, or using the beforeRedirect hook to remove sensitive headers when redirecting to a different hostname.

CVSS Base Scores

version 4.0
version 3.1