Skip to main content

hackney CVE-2026-47075

| EUVDEUVD-2026-31687 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-05-25 EEF GHSA-j9wq-vxxc-94wf
6.8
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker supplies CRLF-containing query value
  2. Delivery
    Application passes unsanitized URL to hackney
  3. Exploit
    hackney_url:make_url/3 emits raw CRLF in request target
  4. Execution
    HTTP/1.1 request line split at CRLF
  5. Persist
    Injected headers sent to downstream server
  6. Impact
    Downstream server processes forged headers

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

The attacker must be able to control all or part of a URL - specifically the query string component - that is subsequently passed to hackney for an outbound HTTP request. This is an application-level trust boundary condition: if the application properly validates or encodes user input before constructing URLs for hackney, the vulnerability is not reachable. The CVSS AT:P confirms that this precondition (attacker-controlled URL input reaching hackney without prior encoding) must be present. UI:A indicates the application must actively initiate the HTTP request using the attacker-influenced URL. AV:L indicates the attacker operates within the local system context rather than remotely triggering the HTTP call directly. Exploitation is NOT possible if the application percent-encodes query parameters before passing URLs to hackney, or if user input never flows into hackney's URL construction. Exploitation is limited to scenarios where hackney makes HTTP/1.1 requests (the HTTP/2 and HTTP/3 :path pseudo-header is also mentioned in the patch comment as affected). No authentication to the target application is required (PR:N), but the attacker's ability to inject into the URL is the binding constraint.

Impact

The CVSS 4.0 score of 6.8 with vector AV:L/AC:L/AT:P/PR:N/UI:A reflects a moderate-severity, locally-triggered vulnerability with specific prerequisites rather than a broadly remotely exploitable flaw. AV:L indicates the attacker must influence inputs on the local system or within the application process - not a direct network-exposed endpoint. AT:P confirms that additional preconditions apply: the attacker must control all or part of a URL that the target application passes to hackney. UI:A indicates active application-level interaction is required (i.e., the application must initiate an HTTP request with the attacker-influenced URL). The integrity impact is significant: VI:H and SI:H indicate the attacker can inject headers that manipulate both the vulnerable component and downstream systems (proxies, backend servers). There is no confidentiality or availability impact per the CVSS vector. SSVC rates exploitation as 'poc' (proof-of-concept exists) and Automatable: no, consistent with AT:P and UI:A, meaning mass automated exploitation is not feasible. EPSS at 0.02% (6th percentile) reinforces that real-world exploitation is not widespread. The vulnerability is NOT in CISA KEV. The 'RCE' tag in the input data appears inconsistent with the actual vulnerability class (CRLF injection / HTTP Request Splitting, CWE-93) - the impact is header injection and request splitting, not code execution. This discrepancy should be treated as a mislabeling artifact. Overall, the realistic risk is moderate: high impact if exploitable conditions are met, but significant friction due to required URL control, local attack vector, and the need for application-level interaction.

Exploit ScenarioDerived

An attacker who can influence the query string of a URL processed by a Elixir or Erlang application using hackney - for example, by providing a crafted search parameter that is passed through to an outbound HTTP request - embeds a raw CRLF sequence such as %0D%0A (decoded before URL construction) into the query value. When hackney_url:make_url/3 builds the request target without escaping, the injected CRLF is written verbatim into the HTTP/1.1 request line, causing the downstream server or proxy to parse the injected content as a new header line (e.g., X-Injected: yes), enabling cache poisoning, security control bypass, or server-side request manipulation. A proof-of-concept exists per SSVC assessment, and the test case in the patch demonstrates the exact injection vector using the path /get?q=x HTTP/1.1\r\nX-Injected: yes\r\nX:.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who controls URL input to inject arbitrary HTTP headers or split HTTP/1.1 requests by embedding raw carriage return (\r) or line feed (\n) characters in the query string. The root cause is that hackney_url:make_url/3 passes the query binary directly into the HTTP/1.1 request target without percent-encoding RFC 3986-prohibited characters, violating the grammar defined in RFC 3986 §3.4. All hackney versions from 0 through 4.0.0 are affected; a proof-of-concept exists per SSVC assessment, though no active exploitation is confirmed and the EPSS score (0.02%, 6th percentile) indicates low widespread exploitation probability at time of analysis.

RemediationAI

The primary fix is to upgrade hackney to version 4.0.1 or later, which introduces request target validation in hackney_conn.erl to reject paths containing raw CR, LF, or NUL bytes before they are written to the socket. The patch is confirmed at commit ca73dd0aba0ed557449c18288bf07241671a43c9 (https://github.com/benoitc/hackney/commit/ca73dd0aba0ed557449c18288bf07241671a43c9). Refer to the GitHub Security Advisory GHSA-j9wq-vxxc-94wf for full details. If immediate upgrade is not possible, the compensating control is to sanitize or percent-encode all query string values before passing URLs to hackney at the application layer - specifically, replace any occurrence of \r, \n, or NUL in user-controlled query parameters with their percent-encoded equivalents (%0D, %0A, %00) before constructing URLs. This mitigation adds application-layer encoding overhead and must be applied consistently at every call site that passes user-influenced URLs to hackney; any missed call site remains exploitable. There is no known configuration flag within hackney itself to disable the vulnerable behavior prior to 4.0.1.

Affected VersionsENISA

hackney 0 <4.0.1
hackney 8bb1a359a81ae58567c84f8d24564e9742e6f2bd <ca73dd0aba0ed557449c18288bf07241671a43c9

Affected Packages

euvd hackney fix: 4.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

hackney (CPE: cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*) is a widely used HTTP/1.1 client library for Erlang and Elixir applications. The vulnerability is classified as CWE-93 (Improper Neutralization of CRLF Sequences) and is rooted in hackney_url:make_url/3, which constructs the request target for HTTP/1.1 requests by concatenating the path and query string without sanitizing or percent-encoding the query component. RFC 3986 §3.4 mandates that characters outside the query grammar - including CR (\r, 0x0D), LF (\n, 0x0A), and NUL (0x00) - must be percent-encoded before being placed in a URI. Because hackney_conn.erl previously wrote the path/query directly as the HTTP request line, a caller-supplied URL containing raw CRLF bytes caused those bytes to be interpreted as HTTP line terminators by intermediate proxies, servers, or security controls. The patch (commit ca73dd0aba0ed557449c18288bf07241671a43c9) adds a valid_request_target/1 guard in hackney_conn.erl that rejects any request target containing \r, \n, or NUL before the request is dispatched to the socket, returning {error, {invalid_request_target, Path}} instead of emitting a malformed request.

Know when Hackney gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 6.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (EEF) · only source for this CVE.

CVSS VectorVendor: EEF

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 26, 2026 - 17:22 NVD
6.8 (MEDIUM)
CVE Published
May 25, 2026 - 14:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Improper Neutralization of CRLF Sequences vulnerability in benoitc hackney allows HTTP Request Splitting. hackney does not percent-encode carriage return (\r) or line feed (\n) characters in the URL query component before constructing the HTTP/1.1 request target. Characters outside the grammar defined in RFC 3986 Section 3.4 must be percent-encoded, but hackney_url:make_url/3 passes the query binary directly without validation or escaping. An attacker who can control all or part of a URL passed to hackney can inject raw CRLF sequences into the query string, which are then sent as HTTP line breaks in the request target. This enables injection of arbitrary HTTP headers or splitting of the HTTP request.

This issue affects hackney: from 0 before 4.0.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-47073 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 2.0.0 through 4.0.0 allows a malicious WebSocket serv

CVE-2026-47067 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) 2.0.0 through 4.0.0 allows remote unauthenticated attackers to

CVE-2026-47066 HIGH POC
8.7 May 25

Denial-of-service in benoitc's hackney Erlang HTTP client (versions 2.0.0-beta.1 through 4.0.0) allows any HTTP origin s

CVE-2026-47077 HIGH POC
8.2 May 25

Remote denial of service in benoitc hackney 2.0.0 through 4.0.0 lets a malicious HTTP/3 server exhaust a client's BEAM p

CVE-2026-47071 HIGH POC
8.2 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CO

CVE-2026-47072 MEDIUM POC
6.9 May 25

CRLF injection in hackney (Erlang HTTP client, versions 2.0.0-4.0.1) enables header injection into outbound WebSocket up

CVE-2026-47076 MEDIUM POC
6.9 May 25

SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control

CVE-2026-47070 MEDIUM POC
6.0 May 25

Credential leakage in the hackney Erlang HTTP client library (versions 3.1.1 through before 4.0.1) allows a malicious or

CVE-2026-115693 CRITICAL
9.1 Oct 26

Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers

CVE-2026-97200 HIGH
8.2 Oct 26

Memory exhaustion in the Erlang hackney HTTP client (2.0.0-beta.1 through 4.8.x) lets any server the client requests for

CVE-2026-115700 MEDIUM
6.9 Oct 26

Server-side request forgery in the Erlang hackney HTTP client (versions 4.0.1 up to but not including 4.9.0) lets an att

CVE-2026-47069 LOW POC
2.1 May 25

CRLF injection in the hackney Erlang HTTP client library's hackney_cookie:setcookie/3 function enables HTTP response spl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy