CVE-2026-47072
published medium CVSS 4.0 · 6.9CRLF injection in WebSocket upgrade request in hackney
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| benoitc | — | hackney2.0.0-beta.1 to < 4.0.1 · Other versions: unaffected | Affected | Not stated | EEF |
| benoitc | — | benoitc/hackneyhackney · 690cecaf236fba49526da404a5bc889a24367a3e to < 52310ca807e7b48441ba0e9129171f535313fdd1 · Other versions: unaffected | Affected | Not stated | EEF |
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-beta.1 before 4.0.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| benoitc | hackney | 2.0.0-beta.1 to < 4.0.1 (affected · semver)Default: unaffected | EEF · cna |
| benoitc | hackney | 690cecaf236fba49526da404a5bc889a24367a3e to < 52310ca807e7b48441ba0e9129171f535313fdd1 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-93 CWE-93 Improper Neutralization of CRLF Sequences
References
5- EEF CNA record for CVE-2026-47072 https://cna.erlef.org/cves/CVE-2026-47072.html
- Fix commit 52310ca in benoitc/hackney https://github.com/benoitc/hackney/commit/52310ca807e7b48441ba0e9129171f535313fdd1
- Introducing commit 690ceca in benoitc/hackney https://github.com/benoitc/hackney/commit/690cecaf236fba49526da404a5bc889a24367a3e
- CRLF / header injection in WebSocket upgrade request https://github.com/benoitc/hackney/security/advisories/GHSA-f9vr-g2g2-x9fg
- OSV record EEF-CVE-2026-47072 https://osv.dev/vulnerability/EEF-CVE-2026-47072
Provider assertions
2EEF · cna
CRLF injection in WebSocket upgrade request in hackney
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9f1b7745701a05fbc6a9d181a1752af1608c6a36ac8db399230f6c41a502de47
- Ingested
- 20 Nov 2026, 08:21:02 UTC
- Source record
- Official CVE record