{"id":"CVE-2026-47069","published":"2026-05-25T14:00:39Z","modified":"2026-11-20T07:59:51Z","title":"CRLF injection in cookie domain/path options in hackney","vendor":"benoitc","product":"hackney","tier":"tail","description":{"text":"Improper 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00425,"percentile":0.37704,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-mp55-p8c9-rfw2","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47069.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47069","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/602d5c7f2ea4acbc83ed75230655d935a0750ebc","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540","tags":["patch"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":7.54},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"benoitc","affectedVersions":[{"vendor":"benoitc","product":"hackney","versions":[">= 0.9.0, < 4.0.1"]},{"vendor":"benoitc","product":"hackney","versions":[">= 602d5c7f2ea4acbc83ed75230655d935a0750ebc, < 8e02b99c28aea1b3fa2ddc0e66f51fe5bb0ac540"]}],"capec":[{"id":"CAPEC-34","name":"HTTP Response Splitting"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T15:57:10.763778Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"hackney","vulnerableRanges":[">=0.9.0, <4.0.1"],"patched":["4.0.1"],"from":["GHSA-mp55-p8c9-rfw2"],"provenance":"source"}],"summary":{"text":"The flaw is a CRLF injection in the domain and path options of hackney_cookie:setcookie/3 in the hackney Erlang HTTP client library, where those options are concatenated into the Set-Cookie output without the CRLF and control-character checks applied to the Name and Value arguments. An attacker who can control either the domain or path value, such as through a forwarded Host header or request path, can inject a CRLF sequence and arbitrary additional Set-Cookie headers into the HTTP response, which requires local access to the affected system and a user to act on the malicious input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:32Z"},"euvd":{"id":"EUVD-2026-31683","exploited":false,"provenance":"source"}}