Skip to main content

ninenines cowlib CVE-2026-43968

| EUVDEUVD-2026-29192 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-05-11 EEF GHSA-hv23-4qp7-8c8r
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Recon
    Supply \r-bearing payload in user-controlled input
  2. Delivery
    Input reflected into SSE field by application
  3. Exploit
    cowlib encoder passes \r unvalidated
  4. Install
    SSE frame transmitted to EventSource client
  5. C2
    Browser treats \r as line terminator, splitting frame
  6. Execute
    Forged event type and data dispatched in client
  7. Impact
    DOM injection or logic manipulation executed

Vulnerability Assessment

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

Exploitation requires that the target application passes attacker-controlled content as a value for at least one of the four SSE fields (id, event, data, or comment) to cowlib's cow_sse:event/1 without prior sanitization of \r characters. This is the specific deployment pattern described in the CVE: cowlib is used to stream SSE that includes user-supplied data. Limiting factors: (1) the application must actually reflect user input into SSE fields - server-controlled SSE content is unaffected; (2) SSVC rates Automatable: no, meaning no known mechanism scales exploitation across arbitrary targets without application-specific knowledge; (3) the CVSS 4.0 AT:P confirms a specific attack requirement must be satisfied before injection is possible; (4) meaningful client-side impact (XSS-equivalent) further requires the receiving JavaScript to render event.data into the DOM or dispatch sensitive logic on event.type. Authentication requirements for the SSE endpoint are application-defined and not determinable from the available CVE data.

Impact

The CVSS 4.0 score of 6.3 (Medium) with AT:P (Attack Requirements Present) accurately captures that exploitation is conditional: the attacker must control content that reaches a cowlib SSE field. The AC:L rating reflects that once that prerequisite is met, the injection itself requires no additional complexity. EPSS at 0.04% (14th percentile) indicates very low observed exploitation probability, consistent with the niche Erlang/SSE deployment footprint and the absence of a known POC. SSVC corroborates this with Exploitation: none and Automatable: no, confirming no automated exploitation path exists at time of analysis. The Technical Impact: partial rating is appropriate - confidentiality and availability are unaffected; only SSE stream integrity and downstream client behavior are at risk. The most significant real-world risk materialises in applications that (a) use cowlib to stream SSE and (b) include user-supplied content in SSE fields without independent sanitization - the combination enables DOM injection equivalent to stored XSS. This is a genuine priority for those application patterns but a low priority for cowlib consumers that fully control SSE field content.

Exploit ScenarioDerived

An attacker submits a message or username containing a bare \r character to a cowlib-backed SSE endpoint that echoes user content - for example, a live-chat notification stream. cowlib's encoder passes the \r through unvalidated, producing a raw SSE frame where the \r is treated by the receiving browser's EventSource as a line terminator. The browser parses the injected content as a separate SSE event with an attacker-chosen event type and data payload; if client-side JavaScript dispatches on that event type or inserts event.data into the DOM, arbitrary HTML or script executes in the victim's browser session. No public exploit code has been identified at time of analysis.

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 – Jul 23, 2026

CRLF injection in cowlib's SSE encoder allows an attacker who supplies field values - id, event, data, or comment - containing bare carriage-return (\r) characters to split and forge arbitrary SSE events on receiving clients. Affected are all cowlib deployments from version 2.6.0 used to stream SSE to browser EventSource clients or other SSE consumers that dispatch on event.type or render event.data into the DOM, where the impact is equivalent to stored XSS. No active exploitation is confirmed (not in CISA KEV), EPSS is 0.04% (14th percentile), and SSVC rates automatable as 'no', indicating this is a targeted rather than mass-exploitable flaw; however, applications that echo user-controlled data through SSE fields face meaningful client-side integrity risk.

RemediationAI

Upstream fix is available as commit 6165fc40efa159ba1cceee7e7981e790acba5d9c in the ninenines/cowlib GitHub repository (https://github.com/ninenines/cowlib/commit/6165fc40efa159ba1cceee7e7981e790acba5d9c). A released tagged version containing this fix has not been independently confirmed from the available references - verify the patched release tag in the ninenines/cowlib repository and update your rebar3 or mix dependency accordingly before deploying. As a compensating control where immediate upgrade is not feasible, applications should sanitize all user-controlled input before passing it to cow_sse:event/1 by stripping or rejecting any \r characters alongside \n from id, event, data, and comment field values at the application layer; this adds defence in depth but introduces a maintenance burden and must be applied consistently at every SSE emission call site.

Affected VersionsENISA

cowlib 2.6.0
cowlib 93b2b897cde238506c803faad4d1602d79dba7c9

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 (CPE: cpe:2.3:a:ninenines:cowlib) is an Erlang/OTP HTTP utility library that underpins the Cowboy HTTP server, providing parsers and encoders for HTTP/1.1, HTTP/2, WebSocket, and Server-Sent Events. The vulnerable code path is cow_sse:event/1 in src/cow_sse.erl, which constructs SSE frames. Prior to the fix, field validation for id and event used binary:match(Bin, <<"\n">>) - checking only for LF - while the internal prefix_lines/2 helper split data and comment fields on \n alone. CWE-93 (Improper Neutralization of CRLF Sequences) describes precisely this pattern: incomplete line-terminator sanitization that leaves CR (\r) as an unguarded injection vector. The SSE specification (HTML Living Standard) mandates that decoders treat \r\n, \r, and \n as equivalent line terminators, so a bare \r in an encoded field is indistinguishable from a real field boundary on the client. The fix (commit 6165fc40) expands all binary:match and binary:split calls to cover [<<"\r\n">>, <<"\r">>, <<"\n">>], closing the gap.

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:L/VA:N/SC:N/SI:L/SA:N
vuln.today AI 5.8 MEDIUM

Network-reachable with no auth per source vector PR:N; scope changes to browser client (S:C); only stream integrity affected (I:L), no confidentiality or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (EEF).

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
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
May 11, 2026 - 19:22 NVD
6.3 (MEDIUM)
CVE Published
May 11, 2026 - 18:06 nvd
UNKNOWN (no severity yet)
CVE Published
May 11, 2026 - 18:06 nvd
MEDIUM 6.3

DescriptionCVE.org

Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows SSE event splitting and injection via unvalidated field values.

cow_sse:event/1 in cowlib guards the id and event fields against \n but not against bare \r, and the internal prefix_lines/2 function used for data and comment fields splits only on \n. Because the SSE specification requires decoders to treat \r\n, \r, and \n as equivalent line terminators, an attacker who controls any of these fields can inject additional SSE lines and forge a complete event with an arbitrary event type and data payload on the receiving end. In typical deployments where browser EventSource clients or other SSE consumers dispatch on event.type and render event.data, this enables event splitting, client-side logic manipulation, and stored-XSS-equivalent behaviour when event data is inserted into the DOM.

This issue affects cowlib from 2.6.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Low
niche Erlang HTTP library used within the Cowboy ecosystem
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 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
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

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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