CVE-2026-47069: 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 Response Splitting. The hackney_cookie:setcookie/3 function in src/hackney_cookie.erl validates the Name and Value arguments against CRLF and control characters, but concatenates the domain and path options verbatim into the output iolist with no equivalent check. An attacker who controls either option — for example by supplying a Host header value forwarded as the cookie domain, or a request path forwarded as the cookie path — can inject a literal CRLF sequence and arbitrary additional Set-Cookie headers into the HTTP response. This issue affects hackney: from 0.9.0 before 4.0.1.
AI Analysis
Technical Summary
The hackney_cookie:setcookie/3 function in benoitc hackney improperly neutralizes CRLF sequences in the domain and path options of cookies. While it validates the Name and Value arguments, it concatenates domain and path options verbatim into the HTTP response without validation. An attacker who can control the Host header or request path that is forwarded as the cookie domain or path can inject CRLF sequences, enabling HTTP response splitting and injection of arbitrary Set-Cookie headers. This affects hackney versions from 0.9.0 before 4.0.1.
Potential Impact
An attacker able to supply the domain or path options for cookies can inject CRLF sequences into HTTP responses, potentially causing HTTP response splitting. This may allow injection of arbitrary Set-Cookie headers, which could lead to session fixation or other HTTP header injection issues. The overall severity is low, and no known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input for cookie domain and path options in hackney. Validate or sanitize these inputs before passing them to the setcookie/3 function to prevent CRLF injection.
CVE-2026-47069: 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 Response Splitting. The hackney_cookie:setcookie/3 function in src/hackney_cookie.erl validates the Name and Value arguments against CRLF and control characters, but concatenates the domain and path options verbatim into the output iolist with no equivalent check. An attacker who controls either option — for example by supplying a Host header value forwarded as the cookie domain, or a request path forwarded as the cookie path — can inject a literal CRLF sequence and arbitrary additional Set-Cookie headers into the HTTP response. This issue affects hackney: from 0.9.0 before 4.0.1.
CVSS v4.0
Score 2.1low
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 hackney_cookie:setcookie/3 function in benoitc hackney improperly neutralizes CRLF sequences in the domain and path options of cookies. While it validates the Name and Value arguments, it concatenates domain and path options verbatim into the HTTP response without validation. An attacker who can control the Host header or request path that is forwarded as the cookie domain or path can inject CRLF sequences, enabling HTTP response splitting and injection of arbitrary Set-Cookie headers. This affects hackney versions from 0.9.0 before 4.0.1.
Potential Impact
An attacker able to supply the domain or path options for cookies can inject CRLF sequences into HTTP responses, potentially causing HTTP response splitting. This may allow injection of arbitrary Set-Cookie headers, which could lead to session fixation or other HTTP header injection issues. The overall severity is low, and no known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input for cookie domain and path options in hackney. Validate or sanitize these inputs before passing them to the setcookie/3 function to prevent CRLF injection.
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: 6a149bd3a5ae1af1aad77315
Added to database: 05/25/2026, 18:58:27 UTC
Last enriched: 06/01/2026, 20:34:59 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 120
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.