Live threats

All CVEs / Benoitc

CVE-2026-47072Benoitc Hackney

Medium 6.9 No auth needed

Priority
56
CVSS 4.0
6.9
EPSS
—
Auth required
No
Published
May 25, 2026
Updated
Nov 20, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-93
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hackney.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Hex hackney ≥ 2.0.0-beta.1 < 4.0.1 4.0.1 —
Hex hackney ≥ 2.0.0 < 4.0.1 4.0.1 —

Per OSV / GitHub Advisories (EEF-CVE-2026-47072, GHSA-f9vr-g2g2-x9fg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
benoitchackney≥ 2.0.0 < 4.0.1

Official sources

References

Links published by the sources. Open them with care.