Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-47069 EEF-CVE-2026-47069EUVD-2026-31683GHSA-mp55-p8c9-rfw2

CRLF injection in cookie domain/path options in hackney

Published May 25, 2026 · Updated May 27, 2026 · Assigned by EEF

Description

Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Response Splitting. The hackney_cookie:setcookie/3 function in src/hackney_cookie.erl validates the Name and Value arguments against CRLF and control characters, but concatenates the domain and path options verbatim into the output iolist with no equivalent check. An attacker who controls either option — for example by supplying a Host header value forwarded as the cookie domain, or a request path forwarded as the cookie path — can inject a literal CRLF sequence and arbitrary additional Set-Cookie headers into the HTTP response.

This issue affects hackney: from 0.9.0 before 4.0.1.

Affected products

VendorProductAffectedFixed
benoitc hackney 0.9.0 – < 4.0.1 4.0.1

Affected packages

EcosystemPackageAffectedFixedRecord
Hex hackney >= 0.9.0, < 4.0.1 4.0.1 EEF-CVE-2026-47069

References