Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
4.3

hono Improperly Handles JSX Attribute Names

GHSA-458j-xx4x-4375
Summary

hono's server-side rendering can be tricked into adding malicious HTML attributes or elements if it uses untrusted input as attribute names. This could allow an attacker to inject unintended HTML, potentially leading to cross-site scripting (XSS). To fix this, ensure that only trusted input is used as JSX attribute keys during server-side rendering.

What to do
  • Update yusukebe hono to version 4.12.14.
Affected software
Ecosystem VendorProductAffected versions
npm yusukebe hono < 4.12.14
Fix: upgrade to 4.12.14
Original title
hono Improperly Handles JSX Attribute Names Allows HTML Injection in hono/jsx SSR
Original description
## 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.
osv CVSS3.1 4.3
Vulnerability type
CWE-79 Cross-site Scripting (XSS)
Published: 16 Apr 2026 · Updated: 16 Apr 2026 · First seen: 16 Apr 2026