CVE-2026-44214
eventsource-encoder encodes events as well-formed …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx
- html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream
- github.com/advisories/GHSA-m9g3-3g99-mhpx
- nvd.nist.gov/vuln/detail/CVE-2026-44214
- nvd.nist.gov/vuln/detail/CVE-2026-44214
- cve.org/CVERecord?id=CVE-2026-44214
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.