4.7medium
Hono: Unvalidated JSX Tag Names in hono/jsx May Allow HTML Injection
- Severity
- 4.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-69xw-7hcm-h432
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.16, Improper handling of JSX element tag names in hono/jsx allowed unvalidated tag names to be directly inserted into the generated HTML output. When untrusted input is used as a tag name via the programmatic jsx() or createElement() APIs during server-side rendering, specially crafted values may break out of the intended element context and inject unintended HTML. This vulnerability is fixed in 4.12.16.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs hono | < 4.12.16 | CVE List |
| hono (npm) | before 4.12.16 | GitHub Advisory Database |
| hono hono | before 4.12.16 | NVD |
All scores
| GitHub_M | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.16, Improper handling of JSX element tag names in hono/jsx allowed unvalidated tag names to be directly inserted into the generated HTML output. When untrusted input is used as a tag name via the programmatic jsx() or createElement() APIs during server-side rendering, specially crafted values may break out of the intended element context and inject unintended HTML. This vulnerability is fixed in 4.12.16.
GitHub Advisory Database
Summary
Improper handling of JSX element tag names in hono/jsx allowed unvalidated tag names to be directly inserted into the generated HTML output.
When untrusted input is used as a tag name via the programmatic jsx() or createElement() APIs during server-side rendering, specially crafted values may break out of the intended element context and inject unintended HTML.
Details
When rendering JSX elements to HTML strings, attribute values are escaped and attribute names are validated. However, element tag names were previously inserted into the output without validation.
If a tag name contains characters such as <, >, quotes, or whitespace, it may alter the structure of the generated HTML.
For example, malformed tag names can:
- Break out of the intended element and introduce unintended HTML elements
- Inject attributes or event handlers into the rendered output
This issue arises when untrusted input (such as query parameters or database content) is used as JSX tag names via jsx() or createElement() during server-side rendering.
Impact
An attacker who can control tag names used in JSX rendering may inject unintended HTML into the generated output.
This may lead to:
- Injection of unexpected HTML elements or attributes
- Corruption of the HTML structure
- Cross-site scripting (XSS) when combined with unsafe usage patterns
This issue only affects applications that construct JSX tag names from untrusted input. Applications using static or allowlisted tag names are not affected.
NVD (es)
Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.12.16, el manejo inadecuado de los nombres de etiquetas de elementos JSX en hono/jsx permitía que nombres de etiquetas no validados fueran insertados directamente en la salida HTML generada. Cuando una entrada no confiable se utiliza como nombre de etiqueta a través de las API programáticas jsx() o createElement() durante la renderización del lado del servidor, valores especialmente diseñados pueden escapar del contexto del elemento previsto e inyectar HTML no deseado. Esta vulnerabilidad está corregida en la versión 4.12.16.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44455 changed 2026-05-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-69xw-7hcm-h432 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-44455 changed 2026-10-26 | Public domain |