CVE 2.1 LOW

CRLF injection in cookie domain/path options in hackney_CVE-2026-47069

2.1 / 10
LOW
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

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.

Basic Information

ID CVE-2026-47069
Source EEF
Published May 25, 2026 at 14:00

Affected Product

Vendor benoitc
Product hackney
Version 0.9.0
Affected Versions benoitc hackney 0.9.0
benoitc hackney 602d5c7f2ea4acbc83ed75230655d935a0750ebc

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.