CVE-2026-47069 CRLF injection in cookie domain/path options in hackney
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| benoitc hackney | >= 0.9.0, < 4.0.1; >= 602d5c7f2ea4acbc83ed75230655d935a0750ebc, < 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540 | 4.0.1, 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540 | Fixed |
| hex hackney(Hex) | >= 0.9.0, < 4.0.1 | 4.0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hex hackney(Hex) | >= 0.9.0, < 4.0.1 | 4.0.1 |
| benoitc hackney | >= 0.9.0, < 4.0.1 | 4.0.1 |
| benoitc hackney | >= 602d5c7f2ea4acbc83ed75230655d935a0750ebc, < 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540 | 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540 |
References
- CRLF / header injection via unvalidated `domain` and `path` options exploit patch related vendor-advisory
- EEF CNA record for CVE-2026-47069 patch related third-party-advisory
- OSV record EEF-CVE-2026-47069 patch related third-party-advisory
- Fix commit 8e02b99 in benoitc/hackney patch
- nvd.nist.gov third-party-advisory
- github.com
- Introducing commit 602d5c7 in benoitc/hackney related
- ENISA EUVD EUVD-2026-31683 third-party-advisory