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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd 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-17318038
  • published12 Jun 2026
  • disclosed11 Jun 2026
  • creditSnailSploit

Introduced: 11 Jun 2026

NewCVE-2026-48022  (opens in a new tab)
CWE-319  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-522  (opens in a new tab)

How to fix?

Upgrade @hapi/wreck to version 18.1.2 or higher.

Overview

@hapi/wreck is a HTTP Client Utilities library.

Affected versions of this package are vulnerable to Insufficiently Protected Credentials due to the improper origin validation in the cross-origin redirect handling. An attacker can obtain sensitive credential headers by crafting cross-port or cross-scheme redirects, enabling interception of bearer tokens, session cookies, or proxy credentials.

Workaround

This vulnerability can be mitigated by setting redirects: 0 and handling redirects manually with a strict origin check, or by using the beforeRedirect hook to inspect the redirect target and abort or strip sensitive headers before the follow-on request.

CVSS Base Scores

version 4.0
version 3.1