5.3medium
hono - HTML Injection via Improper JSX Attribute Name Handling in SSR
- Severity
- 5.3medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.17% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-458j-xx4x-4375
Description
hono before 4.12.14 contains an html injection vulnerability in jsx server-side rendering that allows attackers to inject unintended html by using malformed attribute names. Attackers can craft specially crafted attribute keys containing characters like quotes or angle brackets to break html tag boundaries and inject arbitrary attributes or elements.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| hono hono | before 4.12.14 Not affected: 4.12.14 | CVE List, NVD |
| hono (npm) | before 4.12.14 | GitHub Advisory Database |
All scores
| VulnCheck | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
hono before 4.12.14 contains an html injection vulnerability in jsx server-side rendering that allows attackers to inject unintended html by using malformed attribute names. Attackers can craft specially crafted attribute keys containing characters like quotes or angle brackets to break html tag boundaries and inject arbitrary attributes or elements.
GitHub Advisory Database
Summary
Improper handling of JSX attribute names in hono/jsx allows malformed attribute keys to corrupt the generated HTML output.
When untrusted input is used as attribute keys during server-side rendering, specially crafted keys can break out of attribute or tag boundaries and inject unintended HTML.
Details
When rendering JSX elements to HTML strings, attribute values are escaped, but attribute names (keys) were previously inserted into the output without validation.
If an attribute name contains characters such as ", >, or whitespace, it can alter the structure of the generated HTML.
For example, malformed attribute names can:
- Break out of the current attribute and introduce unintended additional attributes
- Break out of the current HTML tag and inject new elements into the output
This issue arises when untrusted input (such as query parameters or form data) is used as JSX attribute keys during server-side rendering.
Impact
An attacker who can control attribute keys used in JSX rendering may inject unintended attributes or HTML elements into the generated output.
This may lead to:
- Injection of unexpected HTML attributes
- Corruption of the HTML structure
- Potential cross-site scripting (XSS) if combined with unsafe usage patterns
This issue affects applications that pass untrusted input as JSX attribute keys during server-side rendering.
NVD (es)
hono anterior a la versión 4.12.14 contiene una vulnerabilidad de inyección HTML en la representación JSX del lado del servidor que permite a los atacantes inyectar HTML no deseado mediante el uso de nombres de atributos mal formados. Los atacantes pueden crear claves de atributos especialmente diseñadas que contengan caracteres como comillas o corchetes angulares para romper los límites de las etiquetas HTML e inyectar atributos o elementos arbitrarios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56761 changed 2026-06-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-458j-xx4x-4375 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-56761 changed 2026-10-25 | Public domain |