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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44214.json",
"cwe_ids": [
"CWE-113",
"CWE-93"
],
"cna_assigner": "GitHub_M"
}{
"cpe": "cpe:2.3:a:rexxars:eventsource-encoder:*:*:*:*:*:node.js:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.0.2"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
]
}