Skip to main content

cowlib CVE-2026-43966

| EUVDEUVD-2026-35131 MEDIUM
HTTP Response Splitting (CWE-113)
2026-06-08 EEF GHSA-w4f7-4cxr-rv3c
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Identify application endpoint routing input into structured HTTP headers
  2. Delivery
    Submit request with CRLF-embedded header value
  3. Exploit
    cow_http_struct_hd:escape_string/2 emits raw CR/LF bytes into serialized header
  4. Execution
    Wire representation contains injected CRLF sequence
  5. Persist
    Downstream browser or proxy interprets injected bytes as new header
  6. Impact
    HTTP 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 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 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

cowlib a8b793db3d6ffe91d62f81baf41b1dab4cd78fb6
cowlib 2.9.0

Affected Packages

euvd cowlib no fix

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

Vendor (EEF) PRIMARY 6.3 MEDIUM
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

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

Lifecycle Timeline

2
CVSS changed
Jun 08, 2026 - 17:22 NVD
6.3 (MEDIUM)
CVE Published
Jun 08, 2026 - 16:34 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.0%
Top 85% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC 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 No
EPSS 0.0%
Patch available No
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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