Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application endpoint routing input into structured HTTP headers
-
DeliverySubmit request with CRLF-embedded header value
-
Exploitcow_http_struct_hd:escape_string/2 emits raw CR/LF bytes into serialized header
-
ExecutionWire representation contains injected CRLF sequence
-
PersistDownstream browser or proxy interprets injected bytes as new header
-
ImpactHTTP response splitting achieves header injection or cache poisoning
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTTP response header sanitization
|
| Exploitation Conditions | Exploitation requires that the vulnerable application uses cowlib's structured-field encoder by calling cow_http_struct_hd:item/1 directly or through a higher-level wrapper such as cow_http_hd:wt_protocol/1, AND that attacker-controlled data reaches this call without prior sanitization to strip or reject CR (0x0D) or LF (0x0A) bytes. The CVSS 4.0 AT:P flag encodes this prerequisite explicitly. No authentication is required (PR:N) and no user interaction is needed (UI:N) once the vulnerable code path is reachable. Exploitation is constrained to cowlib versions from 2.9.0 onward. Default Cowboy or Gun deployments that do not route untrusted input into structured-field headers are not exploitable; the risk is specific to application-layer logic that builds RFC 8941 structured values from external input. The impact is limited to HTTP response or request splitting against downstream clients or proxies - the originating server's confidentiality, integrity, and availability are unaffected (VC:N/VI:N/VA:N). |
| Impact | The CVSS 4.0 base score of 6.3 (Medium) is shaped by two significant moderating factors. First, AT:P (Attack Prerequisites Present) indicates exploitation is conditional: the target application must explicitly route attacker-controlled data into cowlib's structured-field encoder without prior sanitization - generic Cowboy deployments that do not use this encoder path are unaffected. Second, the impact metrics show no Vulnerable system impact (VC:N/VI:N/VA:N) and only Subsequent system integrity at Low (SC:N/SI:L/SA:N), meaning the vulnerable server itself is not compromised; the harm falls on downstream consumers such as browsers or proxy caches that interpret injected headers. AV:N and PR:N confirm network-accessible unauthenticated reach where the application condition is met. No EPSS score was supplied in the intelligence data, so exploitation probability cannot be quantified numerically. No KEV listing exists, and no public exploit code has been identified, making this a lower-urgency issue compared to KEV-listed CRLF vulnerabilities. Priority should be driven by whether a given application actually passes user input into cow_http_struct_hd:item/1 or cow_http_hd:wt_protocol/1. |
| Exploit ScenarioDerived | An attacker sends an HTTP request to a Cowboy application that echoes a user-supplied protocol identifier into a response header via cow_http_hd:wt_protocol/1, embedding a CRLF sequence in the value (e.g., validproto Set-Cookie: session=attacker). The cowlib encoder passes the CRLF bytes verbatim, causing the serialized header to terminate prematurely; the bytes following the injected CRLF are interpreted by the downstream browser or caching proxy as a new header line, enabling cookie injection, cache poisoning, or cross-user data leakage. No public exploit code has been identified, but the technique is well-understood and requires no special tooling beyond the ability to send crafted HTTP requests. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
HTTP response splitting in ninenines cowlib allows network-accessible attackers to inject arbitrary HTTP headers when applications route untrusted input through the library's structured-field encoder. The root cause is an encoder/decoder asymmetry in cow_http_struct_hd:escape_string/2: it escapes only backslash and double-quote, emitting all other bytes verbatim - including CR (0x0D) and LF (0x0A) - while the matching parser only accepts printable ASCII. Any Cowboy or Gun application that builds a structured HTTP header from attacker-controlled input via cow_http_struct_hd:item/1 or cow_http_hd:wt_protocol/1 is affected. No public exploit has been identified and this CVE does not appear in CISA KEV, but upstream fixes are available as commits to both Cowboy and Gun.
RemediationAI
Upstream fixes have been committed to both Cowboy and Gun but a tagged cowlib release version incorporating the root-cause fix has not been confirmed from the available data - treat these as upstream-fix-available-but-release-unconfirmed. The Cowboy commit (https://github.com/ninenines/cowboy/commit/f77cb9b5e730e300fffb551db1ba5d1c4ed878ef) introduces an invalid_response_headers option defaulting to error_terminate, which scans all outgoing response and trailer headers for raw CR or LF bytes and responds with HTTP 500 or drops the connection on detection; setting this option to ignore disables the check entirely and must not be used in production. The Gun commit (https://github.com/ninenines/gun/commit/4f35609eb37109b106a863fc9ba83d7ee64e3e42) adds an invalid_request_headers option defaulting to raise, which throws an exception when CRLF bytes are detected in outgoing request headers. As a compensating control pending a full dependency update, applications should sanitize any input passed to cow_http_struct_hd:item/1 or cow_http_hd:wt_protocol/1 by rejecting or stripping values containing bytes 0x0D or 0x0A before invoking the encoder; this has no functional side effect for well-formed HTTP values. Consult https://vuldb.com/vuln/369277 for additional advisory tracking.
Affected VersionsENISA
Affected Packages
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
cowlib is a shared Erlang HTTP utility library that underpins both the Cowboy HTTP/1.1 and HTTP/2 server and the Gun HTTP/WebSocket client. The vulnerability (CWE-113, Improper Neutralization of CRLF Sequences in HTTP Headers) lives in cow_http_struct_hd, cowlib's implementation of RFC 8941 structured fields. The escape_string/2 function that serializes string items escapes only two bytes ('\' and '"'), passing every other byte through verbatim into the wire representation. The paired parser enforces that string values contain only printable ASCII (codepoints 0x20-0x7E excluding 0x22 and 0x5C), so a value accepted by the application layer can encode bytes - notably 0x0D and 0x0A - that the parser would reject but the encoder silently emits. Higher-level helpers like cow_http_hd:wt_protocol/1 compose structured headers using this encoder, meaning the injection surface extends to any framework feature built on top of it. Affected products are identified by CPE cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:* covering all versions from 2.9.0 onward per EUVD-2026-35131.
Know when Cowlib 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in ninenines cowlib allows HTTP response splitting via non-VCHAR bytes in structured-fields string values.
cow_http_struct_hd:escape_string/2 in cowlib only escapes \ and ", passing all other bytes through verbatim. This creates an encoder/decoder asymmetry: the matching parser accepts only printable ASCII (0x20-0x7E, excluding " and \), but the encoder emits any byte including CR and LF. An application that builds a structured HTTP header via cow_http_struct_hd:item/1 (or a higher-level wrapper such as cow_http_hd:wt_protocol/1) from attacker-controlled input can have \r\n injected into the serialized header value. Once on the wire, the injected CRLF terminates the current header and any following bytes are interpreted as a new header, enabling HTTP response splitting.
This issue affects cowlib from 2.9.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
An unauthenticated remote peer can exhaust memory on an HTTP/2 endpoint built on ninenines cowlib 2.7.0 or later by send
Remote denial of service in ninenines cowlib (the HTTP support library behind the Cowboy web server and Gun client) from
Unauthenticated remote denial of service in ninenines cowlib (versions 0.1.0 through 2.16.0) allows a single crafted SPD
Link header directive smuggling in ninenines cowlib (2.9.0+) enables attacker-controlled browsers to initiate out-of-ban
CRLF injection in cowlib's SSE encoder allows an attacker who supplies field values - id, event, data, or comment - cont
CRLF injection in cowlib's cow_cookie:cookie/1 encoder allows an attacker who controls cookie name or value strings to i
EUVD-2026-35131
GHSA-w4f7-4cxr-rv3c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB