eventsource-encoder: SSE event injection via unsanitized event and id fields
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rexxars | eventsource-encoder | before 1.0.2 | 1.0.2 | Patch available | CNA |
| — | eventsource-encoder (npm) | before 1.0.2 | 1.0.2 | Patch available | GHSA-m9g3-3g99-mhpx |
- eventsource-encoder Vendorrexxars Affected before 1.0.2 Fixed in 1.0.2 Patch available CNA
- eventsource-encoder (npm) Vendor— Affected before 1.0.2 Fixed in 1.0.2 Patch available GHSA-m9g3-3g99-mhpx
Remediation
- Fix · CNA eventsource-encoder (rexxars) Fixed in 1.0.2
- Fix · GHSA-m9g3-3g99-mhpx eventsource-encoder (npm) Fixed in 1.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-44214
- 2026-10-03 Alias added: GHSA-m9g3-3g99-mhpx
References
Sources
- CVE-2026-44214 · CVE Program
- CVE-2026-44214 · NVD
- FIRST EPSS
- GHSA-m9g3-3g99-mhpx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences