hono
Affected
- introduced
0, fixed4.12.14(semver)
Fixed versions
4.12.14
Fix
- Fixed version
4.12.14npm install [email protected]
Advisory
Also known as: CVE-2026-56761
hono Improperly Handles JSX Attribute Names Allows HTML Injection in hono/jsx SSR
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:
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:
This issue affects applications that pass untrusted input as JSX attribute keys during server-side rendering.
Medium Basis: The source's own band: MODERATE
0, fixed 4.12.14 (semver)4.12.14
4.12.14npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0