Hono: SSE Control Field Injection via CR/LF in writeSSE()
cve-program · CVE-2026-29085
PublishedHono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, when using streamSSE() in Streaming Helper, the event, id, and retry fields were not validated for carriage return (\r) or newline (\n) characters. Because the SSE protocol uses line breaks as field delimiters, this could allow injection of additional SSE fields within the same event frame if untrusted input was passed into these fields. This issue has been patched in version 4.12.4.
Read the publisher's advisoryeuvd · EUVD-2026-9507
PublishedHono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, when using streamSSE() in Streaming Helper, the event, id, and retry fields were not validated for carriage return (\r) or newline (\n) characters. Because the SSE protocol uses line breaks as field delimiters, this could allow injection of additional SSE fields within the same event frame if untrusted input was passed into these fields. This issue has been patched in version 4.12.4.
Read the publisher's advisorynvd · CVE-2026-29085
PublishedHono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, when using streamSSE() in Streaming Helper, the event, id, and retry fields were not validated for carriage return (\r) or newline (\n) characters. Because the SSE protocol uses line breaks as field delimiters, this could allow injection of additional SSE fields within the same event frame if untrusted input was passed into these fields. This issue has been patched in version 4.12.4.
Read the publisher's advisoryosv · GHSA-p6xx-57qc-3wxr
Published## Summary When using `streamSSE()` in Streaming Helper, the `event`, `id`, and `retry` fields were not validated for carriage return (`\r`) or newline (`\n`) characters. Because the SSE protocol uses line breaks as field delimiters, this could allow injection of additional SSE fields within the same event frame if untrusted input was passed into these fields. ## Details The SSE helper builds event frames by joining lines with `\n`. While multi-line `data:` fields are handled according to the SSE specification, the `event`, `id`, and `retry` fields previously allowed raw values without rejecting embedded CR/LF characters. Including CR/LF in these control fields could allow unintended additional fields (such as `data:`, `id:`, or `retry:`) to be injected into the event stream. The issue has been fixed by rejecting CR/LF characters in these fields. ## Impact An attacker could manipulate the structure of SSE event frames if an application passed user-controlled input directly into `event`, `id`, or `retry`. Depending on application behavior, this could result in injected SSE fields or altered event stream handling. Applications that render `e.data` in an unsafe manner (for example, using `innerHTML`) could potentially expose themselves to client-side script injection. This issue affects applications that rely on the SSE helper to enforce protocol-level constraints.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-29085 · CVE overview and exploitation status
cve-program · CVE-2026-29085
- https://github.com/honojs/hono/security/advisories/GHSA-p6xx-57qc-3wxr
- https://github.com/honojs/hono/commit/f4123ed9ea3c7c52380cc99a079a4d773838846e
euvd · EUVD-2026-9507
- https://github.com/honojs/hono/security/advisories/GHSA-p6xx-57qc-3wxr
- https://github.com/honojs/hono/commit/f4123ed9ea3c7c52380cc99a079a4d773838846e
nvd · CVE-2026-29085
- https://github.com/honojs/hono/commit/f4123ed9ea3c7c52380cc99a079a4d773838846e
- https://github.com/honojs/hono/security/advisories/GHSA-p6xx-57qc-3wxr