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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.48% (percentile 33, 2026-11-26)
- **CWE:** CWE-93
- **Published:** 2026-05-11T18:06:42.881Z
- **Modified:** 2026-11-20T06:17:27.913Z

## Who should check

- Anyone running ninenines cowlib \>= 2.5.0, \< 2.16.1
- Anyone running ninenines cowlib \>= 93b2b897cde238506c803faad4d1602d79dba7c9, \< 6165fc40efa159ba1cceee7e7981e790acba5d9c

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

- ninenines cowlib: \>= 2.5.0, \< 2.16.1 (cvelist)
- ninenines cowlib: \>= 93b2b897cde238506c803faad4d1602d79dba7c9, \< 6165fc40efa159ba1cceee7e7981e790acba5d9c (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://cna.erlef.org/cves/CVE-2026-43968.html>
- patch: <https://github.com/ninenines/cowlib/commit/93b2b897cde238506c803faad4d1602d79dba7c9>
- patch: <https://github.com/ninenines/cowlib/commit/6165fc40efa159ba1cceee7e7981e790acba5d9c>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-43968>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43968>

HTML: <https://flawdb.com/CVE-2026-43968> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43968>
