CRLF Injection Affecting hackney package, versions <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.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 Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-HEX-HACKNEY-17111516
  • published31 May 2026
  • disclosed25 May 2026
  • creditPJUllrich

Introduced: 25 May 2026

NewCVE-2026-47069  (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 via the setcookie/3 function in the cookie header builder. An attacker can inject a second Set-Cookie header by supplying a crafted domain or path value through request-derived input such as the Host header, request path, or tenant configuration. This lets the attacker set arbitrary cookies in the victim’s browser, enabling session fixation or other cookie-based abuse against users of applications that pass untrusted data into cookie options.

CVSS Base Scores

version 4.0
version 3.1