{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["cow_sse"],"packageName":"cowlib","packageURL":"pkg:hex/cowlib","product":"cowlib","programFiles":["src/cow_sse.erl"],"programRoutines":[{"name":"cow_sse:event/1"},{"name":"cow_sse:event_id/1"},{"name":"cow_sse:event_name/1"},{"name":"cow_sse:event_data/1"},{"name":"cow_sse:event_comment/1"},{"name":"cow_sse:prefix_lines/2"}],"repo":"https://github.com/ninenines/cowlib","vendor":"ninenines","versions":[{"status":"affected","version":"2.6.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["cow_sse"],"packageName":"ninenines/cowlib","packageURL":"pkg:github/ninenines/cowlib","product":"cowlib","programFiles":["src/cow_sse.erl"],"programRoutines":[{"name":"cow_sse:event/1"},{"name":"cow_sse:event_id/1"},{"name":"cow_sse:event_name/1"},{"name":"cow_sse:event_data/1"},{"name":"cow_sse:event_comment/1"},{"name":"cow_sse:prefix_lines/2"}],"repo":"https://github.com/ninenines/cowlib","vendor":"ninenines","versions":[{"status":"affected","version":"93b2b897cde238506c803faad4d1602d79dba7c9","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The application must pass user-controlled data as the <tt>id</tt>, <tt>event</tt>, <tt>data</tt>, or <tt>comment</tt> field to <tt>cow_sse:event/1</tt> (or a higher-level wrapper such as <tt>cowboy_req:stream_events/3</tt>). Applications that construct SSE events exclusively from trusted, application-controlled values are not affected.</p>"}],"value":"The application must pass user-controlled data as the id, event, data, or comment field to cow_sse:event/1 (or a higher-level wrapper such as cowboy_req:stream_events/3). Applications that construct SSE events exclusively from trusted, application-controlled values are not affected."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Loïc Hoguin"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows SSE event splitting and injection via unvalidated field values.</p><p><tt>cow_sse:event/1</tt> in cowlib guards the <tt>id</tt> and <tt>event</tt> fields against <tt>\\n</tt> but not against bare <tt>\\r</tt>, and the internal <tt>prefix_lines/2</tt> function used for <tt>data</tt> and <tt>comment</tt> fields splits only on <tt>\\n</tt>. Because the SSE specification requires decoders to treat <tt>\\r\\n</tt>, <tt>\\r</tt>, and <tt>\\n</tt> 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 <tt>EventSource</tt> clients or other SSE consumers dispatch on <tt>event.type</tt> and render <tt>event.data</tt>, this enables event splitting, client-side logic manipulation, and stored-XSS-equivalent behaviour when event data is inserted into the DOM.</p><p>This issue affects cowlib from 2.6.0.</p>"}],"value":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ninenines cowlib allows SSE event splitting and injection via unvalidated field values.\n\ncow_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.\n\nThis issue affects cowlib from 2.6.0."}],"impacts":[{"capecId":"CAPEC-34","descriptions":[{"lang":"en","value":"CAPEC-34 HTTP Response Splitting"}]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"LOW","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-93","description":"CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-05-11T18:06:42.881Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["related","third-party-advisory"],"url":"https://cna.erlef.org/cves/CVE-2026-43968.html"},{"tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43968"},{"tags":["patch"],"url":"https://github.com/ninenines/cowlib/commit/6165fc40efa159ba1cceee7e7981e790acba5d9c"}],"source":{"discovery":"EXTERNAL"},"title":"CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Sanitize user-controlled values before passing them to <tt>cow_sse:event/1</tt>: reject or strip any value containing <tt>\\r</tt> or <tt>\\n</tt> characters in the <tt>id</tt>, <tt>event</tt>, <tt>data</tt>, and <tt>comment</tt> fields. Alternatively, ensure that all SSE field values are derived exclusively from trusted, application-controlled data rather than user input.</p>"}],"value":"Sanitize user-controlled values before passing them to cow_sse:event/1: reject or strip any value containing \\r or \\n characters in the id, event, data, and comment fields. Alternatively, ensure that all SSE field values are derived exclusively from trusted, application-controlled data rather than user input."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-43968","datePublished":"2026-05-11T18:06:42.881Z","dateReserved":"2026-05-04T18:23:25.573Z","dateUpdated":"2026-05-11T18:06:42.881Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}