Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 58%

CVE-2026-47072: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in benoitc hackney

0
Medium
VulnerabilityCVE-2026-47072cvecve-2026-47072cwe-93
Published: 05/25/2026 (05/25/2026, 14:00:47 UTC)
Source: CVE Database V5
Vendor/Project: benoitc
Product: hackney

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.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
High
Subsq. Availability
None
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

Affected software

hackney
pkg:hex/hackney
Affected versions
=2.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/01/2026, 20:35:52 UTC

Technical Analysis

The vulnerability in benoitc hackney (versions 2.0.0 to before 4.0.1) is due to improper neutralization of CRLF sequences in the WebSocket upgrade request construction. Specifically, the code copies caller-supplied options (host, path, headers, protocols) into an internal record and concatenates them verbatim into the raw HTTP/1.1 upgrade request without stripping CRLF or NUL characters. This lack of sanitization enables an attacker controlling these inputs to inject arbitrary HTTP headers, which can be exploited for HTTP request/response splitting attacks such as header injection, credential spoofing, log and cache poisoning, or request smuggling through intermediary proxies.

Potential Impact

An attacker who can influence the host, path, headers, or protocol options passed to hackney_ws:start_link/1 can inject arbitrary HTTP headers into outbound WebSocket upgrade requests. This can lead to multiple impacts including header injection, credential spoofing toward upstream servers, log and cache poisoning, and request smuggling attacks. These impacts can undermine the integrity and security of communications and potentially facilitate further attacks on backend systems or intermediaries.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, users should avoid passing untrusted input directly into the affected options of hackney_ws:start_link/1. Input validation or sanitization to remove CRLF and NUL characters before passing these options is recommended as a temporary mitigation until an official fix is released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-05-18T17:28:08.322Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a149bd3a5ae1af1aad77327

Added to database: 05/25/2026, 18:58:27 UTC

Last enriched: 06/01/2026, 20:35:52 UTC

Last updated: 07/26/2026, 08:52:02 UTC

Views: 121

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses