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.
Metrics
Affected Vendors & Products
References
History
Tue, 26 May 2026 19:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | eventsource-encoder: SSE event injection via unsanitized event and id fields | |
| Weaknesses | CWE-113 CWE-93 |
|
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-05-26T19:34:32.273Z
Reserved: 2026-05-05T15:13:47.572Z
Link: CVE-2026-44214
No data.
Status : Awaiting Analysis
Published: 2026-05-26T20:16:19.803
Modified: 2026-05-26T20:26:21.620
Link: CVE-2026-44214
No data.
OpenCVE Enrichment
No data.