Skip to content

CVE-2026-44214 eventsource-encoder: SSE event injection via unsanitized event and id fields

MediumCVSS 5.3 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm eventsource-encoder(npm) < 1.0.2; <= 1.0.1 1.0.2 Fixed
rexxars eventsource-encoder < 1.0.2; = < 1.0.2 1.0.2 Fixed

Affected products

ProductAffected versionsFixed in
rexxars eventsource-encoder = < 1.0.2 No fix listed
npm eventsource-encoder(npm) <= 1.0.1 No fix listed
rexxars eventsource-encoder < 1.0.2 1.0.2
npm eventsource-encoder(npm) < 1.0.2 1.0.2

References