# CVE-2026-44214: eventsource-encoder: SSE event injection via unsanitized event and id fields

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A: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.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T20:49:40.000Z
- Modified: 2026-07-24T11:10:00.170Z
- Also known as: GHSA-m9g3-3g99-mhpx
- Weaknesses: CWE-93, CWE-113
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

eventsource-encoder encodes events as well-formed EventSource/Server Sent Event (SSE) messages. Prior to 1.0.2, eventsource-encoder does not sanitize the event or id fields of an EventSourceMessage before serializing them. An attacker who controls either field can inject arbitrary Server-Sent Events line terminators (\n, \r, or \r\n) and thereby forge additional SSE fields or entire messages on the stream. This vulnerability is fixed in 1.0.2.

(As written by CVE List.)

## Affected

- rexxars eventsource-encoder: < 1.0.2; before 1.0.2
- eventsource-encoder (npm): before 1.0.2

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44214> (advisory)
- <https://github.com/rexxars/eventsource-encoder> (package)
- <https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream> (web)

## Sources

- CVE List: [CVE-2026-44214](https://www.cve.org/CVERecord?id=CVE-2026-44214), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-m9g3-3g99-mhpx](https://github.com/advisories/GHSA-m9g3-3g99-mhpx), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-44214](https://nvd.nist.gov/vuln/detail/CVE-2026-44214), Public domain, modified 2026-07-24

---

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