CVE-2026-44214
MEDIUM 5.3CVSS 3.1eventsource-encoder vulnerable to SSE event injection via unsanitized `event` and `id` fields
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.
- Published
- 26 May 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-113CWE-93
- Also known as
- GHSA-m9g3-3g99-mhpx
- Sources
- NVDJSONOSV GHSA-m9g3-3g99-mhpxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rexxars | eventsource-encodercpe:2.3:a:rexxars:eventsource-encoder:*:*:*:*:*:node.js:*:* |
< 1.0.2 | 1.0.2 |
| OSV | npm | eventsource-encoder | < 1.0.2 | 1.0.2 |
References
- https://github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44214 · ADVISORY
- https://github.com/rexxars/eventsource-encoder · PACKAGE
- https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 26 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 May 2026)