CVE-2026-43968
CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1
Mitigation
- Upgrade cowlib to 2.16.1 or later.
- Upgrade cowlib to 6165fc40efa159ba1cceee7e7981e790acba5d9c or later.
- Vendor workaround: 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.
Who should check
- Anyone running ninenines cowlib >= 2.5.0, < 2.16.1
- Anyone running ninenines cowlib >= 93b2b897cde238506c803faad4d1602d79dba7c9, < 6165fc40efa159ba1cceee7e7981e790acba5d9c
Vulnerability facts
- Affected
- ninenines cowlib >= 2.5.0, < 2.16.1; ninenines cowlib >= 93b2b897cde238506c803faad4d1602d79dba7c9, < 6165fc40efa159ba1cceee7e7981e790acba5d9c
- Fixed in
- ninenines cowlib 2.16.1, ninenines cowlib 6165fc40efa159ba1cceee7e7981e790acba5d9c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.48% chance of exploitation in 30 days (percentile 33, 2026-11-26)
- CWE
- CWE-93
- Modified
Description
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.5.0 before 2.16.1.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-43968. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-43968.md Affected: ninenines cowlib >= 2.5.0, < 2.16.1; ninenines cowlib >= 93b2b897cde238506c803faad4d1602d79dba7c9, < 6165fc40efa159ba1cceee7e7981e790acba5d9c Fixed in: ninenines cowlib 2.16.1, ninenines cowlib 6165fc40efa159ba1cceee7e7981e790acba5d9c Steps: 1. Search this machine and project for ninenines cowlib: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-43968 being exploited?
There is no confirmed exploitation: CVE-2026-43968 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-43968?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-43968?
ninenines cowlib >= 2.5.0, < 2.16.1; ninenines cowlib >= 93b2b897cde238506c803faad4d1602d79dba7c9, < 6165fc40efa159ba1cceee7e7981e790acba5d9c.
Is there a fix for CVE-2026-43968?
Yes. Fixed in ninenines cowlib 2.16.1, ninenines cowlib 6165fc40efa159ba1cceee7e7981e790acba5d9c. Upgrade cowlib to 2.16.1 or later. Upgrade cowlib to 6165fc40efa159ba1cceee7e7981e790acba5d9c or later. Vendor workaround: 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.
How do I check if I'm affected by CVE-2026-43968?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.