CRLF Injection Affecting hackney package, versions >=2.0.0-beta.1 <4.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.51% (40th 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-16877831
  • published26 May 2026
  • disclosed25 May 2026
  • creditPJUllrich

Introduced: 25 May 2026

CVE-2026-47072  (opens in a new tab)
CWE-93  (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 CRLF Injection in the do_handshake/1 WebSocket upgrade request assembly in the WebSocket client code. An attacker can inject extra header lines or rewrite the request line by supplying a path, sub-protocol, or extra header value containing \r, \n, or NUL. This lets a malicious caller smuggle attacker-controlled headers onto the wire during the upgrade request, which can corrupt the handshake and expose downstream services to request manipulation.

CVSS Base Scores

version 4.0
version 3.1