Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. eventsource-encoder
  4. ›
  5. CVE-2026-44214

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

May 8, 2026

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 is similar in spirit to GHSA-4hxc-9384-m385 (h3), but the vulnerable fields are event/id rather than data/comment. These are less likely to be user-controllable, but should still be sanitized.

References

  • github.com/advisories/GHSA-m9g3-3g99-mhpx
  • github.com/rexxars/eventsource-encoder
  • github.com/rexxars/eventsource-encoder/security/advisories/GHSA-m9g3-3g99-mhpx
  • html.spec.whatwg.org/multipage/server-sent-events.html
  • nvd.nist.gov/vuln/detail/CVE-2026-44214

Code Behaviors & Features

Detect and mitigate CVE-2026-44214 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.2

Fixed versions

  • 1.0.2

Solution

Upgrade to version 1.0.2 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

npm/eventsource-encoder/CVE-2026-44214.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:24 +0000.