# CVE-2026-43968: CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 34% of CVEs (2026-11-30)
- Published: 2026-05-11T18:06:42.881Z
- Modified: 2026-11-25T17:23:07.098Z
- Also known as: GHSA-hv23-4qp7-8c8r, EEF-CVE-2026-43968
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- cowlib: from 2.5.0 before 2.16.1
- ninenines/cowlib: from 93b2b897cde238506c803faad4d1602d79dba7c9 before 6165fc40efa159ba1cceee7e7981e790acba5d9c
- cowlib (Hex): from 2.6.0 before 2.16.1; from 2.5.0 before 2.16.1
- https://github.com/ninenines/cowlib: from 93b2b897cde238506c803faad4d1602d79dba7c9 before 6165fc40efa159ba1cceee7e7981e790acba5d9c
- ninenines cowlib: from 2.6.0 before 2.16.1

## Every score

- EEF: CVSS:4.0 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`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:4.0 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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`

## References

- <https://cna.erlef.org/cves/CVE-2026-43968.html> (related, third-party-advisory, vendor-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-43968> (related, third-party-advisory, web)
- <https://github.com/ninenines/cowlib/commit/93b2b897cde238506c803faad4d1602d79dba7c9> (related, web)
- <https://github.com/ninenines/cowlib/commit/6165fc40efa159ba1cceee7e7981e790acba5d9c> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43968> (advisory)
- <https://github.com/ninenines/cowlib> (package)
- <https://github.com/ninenines/cowlib/releases/tag/2.16.1> (web)
- <https://hex.pm/packages/cowlib> (package)

## Sources

- CVE List: [CVE-2026-43968](https://www.cve.org/CVERecord?id=CVE-2026-43968), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-hv23-4qp7-8c8r](https://github.com/advisories/GHSA-hv23-4qp7-8c8r), CC-BY-4.0, modified 2026-06-08
- Erlang Ecosystem Foundation: [EEF-CVE-2026-43968](https://osv.dev/vulnerability/EEF-CVE-2026-43968), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-43968](https://nvd.nist.gov/vuln/detail/CVE-2026-43968), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-43968 · Whole record: https://cve.day/CVE-2026-43968.json · Rebuilt by cve.day 2026-11-25T22:59:21.246Z
