CVE-2026-47072: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in benoitc hackney
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.
AI Analysis
Technical Summary
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.
CVE-2026-47072: CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection') in benoitc 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.