{"id":"CVE-2026-43968","published":"2026-05-11T18:06:42Z","modified":"2026-11-20T05:12:10Z","title":"CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1","vendor":"ninenines","product":"cowlib","tier":"tail","description":{"text":"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.5.0 before 2.16.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00275,"percentile":0.2032,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-43968.html","tags":["related","third-party-advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-43968","tags":["related"]},{"url":"https://github.com/ninenines/cowlib/commit/93b2b897cde238506c803faad4d1602d79dba7c9","tags":["related"]},{"url":"https://github.com/ninenines/cowlib/commit/6165fc40efa159ba1cceee7e7981e790acba5d9c","tags":["patch"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.06},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ninenines","affectedVersions":[{"vendor":"ninenines","product":"cowlib","versions":[">= 2.5.0, < 2.16.1"]},{"vendor":"ninenines","product":"cowlib","versions":[">= 93b2b897cde238506c803faad4d1602d79dba7c9, < 6165fc40efa159ba1cceee7e7981e790acba5d9c"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-34","name":"HTTP Response Splitting"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T18:57:13.541982Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"cowlib","vulnerableRanges":[">=2.6.0, <2.16.1"],"patched":["2.16.1"],"from":["GHSA-hv23-4qp7-8c8r"],"provenance":"source"}],"summary":{"text":"The cowlib library's cow_sse:event/1 function, used to encode Server-Sent Events, fails to neutralise bare carriage return characters in its id and event fields and does not split data and comment fields on them, allowing CRLF-style line injection. An attacker who can control any of these field values, under the conditions required for the application to pass that input into the encoder, can inject extra SSE lines and forge a complete event with an arbitrary type and data payload, which may enable client-side logic manipulation or DOM injection in consumers that render event data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:33Z"},"euvd":{"id":"EUVD-2026-29192","exploited":false,"provenance":"source"}}