{"id":"CVE-2026-47072","published":"2026-05-25T14:00:47Z","modified":"2026-11-20T08:07:07Z","title":"CRLF injection in WebSocket upgrade request in hackney","vendor":"benoitc","product":"hackney","tier":"tail","description":{"text":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting.\n\nThe WebSocket upgrade code in src/hackney_ws.erl copies the host, path, headers (ExtraHeaders), and protocols options from the caller-supplied opts map into the internal #ws_data{} record in init/1 and then splices them verbatim into the raw HTTP/1.1 upgrade request by binary concatenation in do_handshake/1. No CRLF or NUL stripping is performed at any of these four injection sites. An attacker who controls any of these options — for example by forwarding URL components or header values from untrusted input into hackney_ws:start_link/1 — can inject arbitrary HTTP headers into the outbound WebSocket upgrade request, leading to header injection, credential spoofing toward the upstream server, log and cache poisoning, or request smuggling via intermediary proxies.\n\nThis issue affects hackney: from 2.0.0-beta.1 before 4.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00542,"percentile":0.4642,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47072.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47072","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/690cecaf236fba49526da404a5bc889a24367a3e","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/52310ca807e7b48441ba0e9129171f535313fdd1","tags":["patch"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":9.28},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"benoitc","affectedVersions":[{"vendor":"benoitc","product":"hackney","versions":[">= 2.0.0-beta.1, < 4.0.1"]},{"vendor":"benoitc","product":"hackney","versions":[">= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1"]}],"capec":[{"id":"CAPEC-33","name":"HTTP Request Smuggling"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-26T15:46:12.092004Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"hackney","vulnerableRanges":[">=2.0.0, <4.0.1"],"patched":["4.0.1"],"from":["GHSA-f9vr-g2g2-x9fg"],"provenance":"source"}],"summary":{"text":"CRLF injection flaws exist in the WebSocket upgrade code (src/hackney_ws.erl) of the hackney product from benoitc, where the host, path, headers and protocols options are concatenated into the raw HTTP/1.1 upgrade request without stripping CRLF or NUL sequences. An attacker who can control any of these options, for example by forwarding untrusted input into hackney_ws:start_link/1, can inject arbitrary HTTP headers into the outbound upgrade request, which may enable credential spoofing, log or cache poisoning, or request smuggling via intermediary proxies.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:48Z"},"euvd":{"id":"EUVD-2026-31690","exploited":false,"provenance":"source"}}