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.
Project Subscriptions
No data.
Advisories
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-m9g3-3g99-mhpx | eventsource-encoder vulnerable to SSE event injection via unsanitized `event` and `id` fields |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
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
|
Projects
Sign in to view the affected projects.
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
Updated: 2026-05-26T21:30:16Z
Github GHSA