Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. h3
  4. ›
  5. CVE-2026-33128

CVE-2026-33128: h3 has a Server-Sent Events Injection via Unsanitized Newlines in Event Stream Fields

March 18, 2026 (updated March 20, 2026)

createEventStream in h3 is vulnerable to Server-Sent Events (SSE) injection due to missing newline sanitization in formatEventStreamMessage() and formatEventStreamComment(). An attacker who controls any part of an SSE message field (id, event, data, or comment) can inject arbitrary SSE events to connected clients.

References

  • github.com/advisories/GHSA-22cc-p3c6-wpvm
  • github.com/h3js/h3
  • github.com/h3js/h3/blob/52c82e18bb643d124b8b9ec3b1f62b081f044611/src/utils/internal/event-stream.ts
  • github.com/h3js/h3/commit/7791538e15ca22437307c06b78fa155bb73632a6
  • github.com/h3js/h3/security/advisories/GHSA-22cc-p3c6-wpvm
  • nvd.nist.gov/vuln/detail/CVE-2026-33128

Code Behaviors & Features

Detect and mitigate CVE-2026-33128 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.15.6, all versions starting from 2.0.0 before 2.0.1-rc.15

Fixed versions

  • 2.0.1-rc.15
  • 1.15.6

Solution

Upgrade to versions 1.15.6, 2.0.1-rc.15 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

npm/h3/CVE-2026-33128.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 24 Mar 2026 12:17:20 +0000.