{"id":"CVE-2026-44214","summary":"eventsource-encoder: SSE event injection via unsanitized event and id fields","details":"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.","aliases":["GHSA-m9g3-3g99-mhpx"],"modified":"2026-07-08T08:09:37.397264053Z","published":"2026-05-26T19:34:32.273Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44214.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-113","CWE-93"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44214.json"},{"type":"ADVISORY","url":"https://github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44214"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rexxars/eventsource-encoder","events":[{"introduced":"0"},{"fixed":"0e24a55b577c43dd7048cb4ced63833b558b6a41"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:rexxars:eventsource-encoder:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.0.2"}]}}],"versions":["v1.0.1","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-44214.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"}]}