{"id":"EEF-CVE-2026-47069","summary":"CRLF injection in cookie domain/path options in hackney","details":"## Summary\n\nImproper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Response Splitting.\n\nThe `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.\n\nThis issue affects hackney: from 0.9.0 before 4.0.1.","aliases":["CVE-2026-47069","GHSA-mp55-p8c9-rfw2"],"modified":"2026-11-25T17:23:12.749463074Z","published":"2026-05-25T14:00:39.394Z","database_specific":{"cwe_ids":["CWE-93"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-34"],"cpe_ids":["cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"]},"references":[{"type":"ADVISORY","url":"https://github.com/benoitc/hackney/security/advisories/GHSA-mp55-p8c9-rfw2"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-47069.html"},{"type":"WEB","url":"https://github.com/benoitc/hackney/commit/602d5c7f2ea4acbc83ed75230655d935a0750ebc"},{"type":"FIX","url":"https://github.com/benoitc/hackney/commit/8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540"},{"type":"PACKAGE","url":"https://hex.pm/packages/hackney"}],"affected":[{"package":{"name":"hackney","ecosystem":"Hex","purl":"pkg:hex/hackney"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0"},{"fixed":"4.0.1"}]}],"versions":["0.13.1","0.14.0","0.14.1","0.14.2","0.14.3","0.15.0","0.15.2","1.0.1","1.0.2","1.0.5","1.0.6","1.1.0","1.10.0","1.10.1","1.11.0","1.12.0","1.12.1","1.13.0","1.14.0","1.14.2","1.14.3","1.15.0","1.15.1","1.15.2","1.16.0","1.17.0","1.17.1","1.17.2","1.17.3","1.17.4","1.18.0","1.18.1","1.18.2","1.19.0","1.19.1","1.2.0","1.20.0","1.20.1","1.21.0","1.22.0","1.23.0","1.24.0","1.24.1","1.25.0","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.10","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.7.0","1.7.1","1.8.0","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.9.0","2.0.0","2.0.0-beta.1","2.0.1","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.2.0","3.2.1","4.0.0"],"ecosystem_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["hackney_cookie"],"program_files":["src/hackney_cookie.erl","src/http/hackney_cookie.erl","src/hackney_lib/hackney_cookie.erl"],"program_routines":["hackney_cookie:setcookie/3"]},"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["hackney_cookie"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-47069.json","program_files":["src/hackney_cookie.erl","src/http/hackney_cookie.erl","src/hackney_lib/hackney_cookie.erl"],"program_routines":["hackney_cookie:setcookie/3"]}},{"ranges":[{"type":"GIT","repo":"https://github.com/benoitc/hackney","events":[{"introduced":"602d5c7f2ea4acbc83ed75230655d935a0750ebc"},{"fixed":"8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540"}]}],"versions":["4.0.0","3.2.1","3.2.0","3.1.2","3.1.1","3.1.0","3.0.3","3.0.2","3.0.1","2.0.1","2.0.0","2.0.0-beta.1","1.25.0","1.24.1","1.24.0","1.23.0","1.22.0","1.21.0","1.20.1","1.20.0","1.19.1","1.19.0","1.18.2","1.18.1","1.18.0","1.17.4","1.17.3","1.17.2","v1.17.0","1.17.0","1.17.1","1.16.0","0.16.0","1.15.2","1.15.1","1.15.0","1.14.3","1.14.2","1.14.0","1.13.0","1.12.1","1.12.0","1.11.0","1.10.1","1.10.0","1.9.0","1.8.6","1.8.5","1.8.4","1.8.3","1.8.2","1.8.0","1.7.1","1.7.0","1.6.6","1.6.5","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.7","1.5.6","1.5.5","1.5.4","1.5.1","1.5.0","1.4.10","1.4.9","1.4.8","1.4.7","1.4.6","1.4.5","1.4.4","1.4.3","1.4.2","1.4.1","1.4.0","1.3.2","1.3.1","1.3.0","1.2.0","1.1.0","1.0.6","1.0.5","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0","0.15.2","0.15.1","0.15.0","0.14.3","0.14.2","0.14.1","0.14.0","0.13.1","0.13.0","0.12.1","0.12.0","0.11.2","0.11.1","0.11.0","0.10.1","0.10.0","0.9.1","0.9.0"],"database_specific":{"program_routines":["hackney_cookie:setcookie/3"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["hackney_cookie"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-47069.json","program_files":["src/hackney_cookie.erl","src/http/hackney_cookie.erl","src/hackney_lib/hackney_cookie.erl"]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Benoit Chesneau","type":"REMEDIATION_DEVELOPER"}]}