Open Redirect Affecting hackney package, versions >=3.1.1 <4.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (27th 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-HEX-HACKNEY-16877779
  • published26 May 2026
  • disclosed25 May 2026
  • creditUnknown

Introduced: 25 May 2026

CVE-2026-47070  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade hackney to version 4.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect via the handle_redirect/8 redirect flow in the HTTP/3 client. An attacker can exfiltrate Authorization, Cookie, and Proxy-Authorization headers, and for 307/308 redirects the original request body, by returning a Location header that points to an attacker-controlled origin. This lets a malicious upstream capture bearer tokens and session cookies when a client follows redirects without checking whether the target is the same scheme, host, and port.

Workarounds

  • Set follow_redirect to false for HTTP/3 requests that may receive redirects, so the client does not automatically follow a cross-origin Location and leak Authorization, Cookie, Proxy-Authorization, or a 307/308 request body to another host.

CVSS Base Scores

version 4.0
version 3.1