Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-47072

MEDIUM 6.9EPSS 37%

CRLF injection in WebSocket upgrade request in hackney

Mitigation

  • Upgrade hackney to 4.0.1 or later.
  • Upgrade hackney to 52310ca807e7b48441ba0e9129171f535313fdd1 or later.

Who should check

  • Anyone running benoitc hackney >= 2.0.0-beta.1, < 4.0.1
  • Anyone running benoitc hackney >= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1

Vulnerability facts

Affected
benoitc hackney >= 2.0.0-beta.1, < 4.0.1; benoitc hackney >= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1
Fixed in
benoitc hackney 4.0.1, benoitc hackney 52310ca807e7b48441ba0e9129171f535313fdd1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: High
  • Availability impact on other systems: None
EPSS
0.52% chance of exploitation in 30 days (percentile 37, 2026-11-26)
CWE
CWE-93
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
benoitc hackney>= 2.0.0-beta.1, < 4.0.1—cvelist
benoitc hackney>= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-47072. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47072.md
Affected: benoitc hackney >= 2.0.0-beta.1, < 4.0.1; benoitc hackney >= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1
Fixed in: benoitc hackney 4.0.1, benoitc hackney 52310ca807e7b48441ba0e9129171f535313fdd1

Steps:
1. Search this machine and project for benoitc hackney: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-47072 being exploited?

There is no confirmed exploitation: CVE-2026-47072 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-47072?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-47072?

benoitc hackney >= 2.0.0-beta.1, < 4.0.1; benoitc hackney >= 690cecaf236fba49526da404a5bc889a24367a3e, < 52310ca807e7b48441ba0e9129171f535313fdd1.

Is there a fix for CVE-2026-47072?

Yes. Fixed in benoitc hackney 4.0.1, benoitc hackney 52310ca807e7b48441ba0e9129171f535313fdd1. Upgrade hackney to 4.0.1 or later. Upgrade hackney to 52310ca807e7b48441ba0e9129171f535313fdd1 or later.

How do I check if I'm affected by CVE-2026-47072?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors