CVE-2026-47075
CR/LF injection in query parameter in hackney
Weakness Type (CWE)
CWE-93 — CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')
CAPEC
Vulnerability description
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.
Affected
pkg:hex/hackney
| Module | Source File | Routine |
|---|---|---|
hackney_url
|
src/hackney_url.erl
|
hackney_url:make_url/3
|
pkg:github/benoitc/hackney
| Module | Source File | Routine |
|---|---|---|
hackney_url
|
src/hackney_url.erl
|
hackney_url:make_url/3
|
| Status | Type | Version | Changes / Fixed in |
|---|---|---|---|
| affected | git ⓘ | 8bb1a359a8
|
< ca73dd0aba
|
References
- https://github.com/benoitc/hackney/security/advisories/GHSA-j9wq-vxxc-94wf vendor-advisory related
- https://osv.dev/vulnerability/EEF-CVE-2026-47075 related
- https://github.com/benoitc/hackney/commit/ca73dd0aba0ed557449c18288bf07241671a43c9 patch
Credits
- Finder: tepel-chen
- Remediation developer: Benoit Chesneau
- Analyst: Jonatan Männchen / EEF
CVE record as JSON:
GET /cves/CVE-2026-47075.json
OSV record as JSON:
GET /osv/EEF-CVE-2026-47075.json