{"id":"CVE-2026-44214","published":"2026-05-26T19:34:32Z","modified":"2026-05-27T13:19:45Z","title":"eventsource-encoder: SSE event injection via unsanitized event and id fields","vendor":"rexxars","product":"eventsource-encoder","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0032,"percentile":0.175,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"}],"references":[{"url":"https://github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.5},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"rexxars","affectedVersions":[{"vendor":"rexxars","product":"eventsource-encoder","versions":["< 1.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-27T13:19:24.561615Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"eventsource-encoder","vulnerableRanges":["<1.0.2"],"patched":["1.0.2"],"from":["GHSA-m9g3-3g99-mhpx"],"provenance":"source"}],"summary":{"text":"The eventsource-encoder library, published by rexxars, fails to sanitize the event and id fields of an EventSourceMessage before serializing them into Server-Sent Events output, in versions before 1.0.2. An attacker who controls either field can embed newline characters (\\n, \\r, or \\r\\n) to inject forged SSE fields or entire messages into the stream, provided the attacker can supply those field values, which the attack vector metadata indicates requires no privileges or user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:14Z"},"euvd":{"id":"EUVD-2026-31968","exploited":false,"provenance":"source"}}