CVE-2026-47072 Details
Description
Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in benoitc hackney allows HTTP Request/Response Splitting. The 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. This issue affects hackney: from 2.0.0 before 4.0.1.
A CRLF injection vulnerability has been identified in the benoitc hackney HTTP client library, specifically in versions 2.0.0 prior to 4.0.1. This vulnerability allows HTTP request/response splitting during the WebSocket upgrade process. The issue arises because the upgrade request builder in 'src/hackney_ws.erl' concatenates user-supplied 'host', 'path', 'headers', and 'protocols' options into the HTTP request without proper sanitization, allowing attackers to inject arbitrary headers. Exploitation can lead to header injection, credential spoofing, log and cache poisoning, or request smuggling via intermediary proxies.
Users can upgrade to hackney version 4.0.1 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg | CISA-ADP | ExploitPatchVendor Advisory |
| https://cna.erlef.org/cves/CVE-2026-47072.html | EEF | PatchThird Party Advisory |
| https://github.com/benoitc/hackney/commit/52310ca807e7b48441ba0e9129171f535313fdd1 | EEF | Patch |
| https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg | EEF | ExploitPatchVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-47072 | EEF | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | EEF |
Affected Products
| Product | Versions |
|---|---|
| benoitc hackney | >= 2.0.0, < 4.0.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 28, 2026 | Initial Analysis | [email protected] |
| May 26, 2026 | CVE Modified | CISA-ADP |
| May 25, 2026 | New CVE Received | EEF |