CVE Catalog

CVE-2026-59895

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

Vulnerability in Hono framework (versions 4.0.0 to 4.12.26) in the cx() function from hono/css. The function composes class names from plain strings but marks the result as already escaped without HTML-escaping the input, allowing untrusted className values used in a JSX class attribute during server-side rendering to break out of the attribute and inject arbitrary markup.

Risk Assessment

An attacker can inject arbitrary HTML or JavaScript, leading to XSS (Cross-Site Scripting) attacks and potentially to user session hijacking or data theft.

Recommendation

Immediately update Hono to version 4.12.27 or later. If an update is not possible, avoid using untrusted data in the class attribute with the cx() function.

Other vulnerabilities in Hono

See all
Original NVD description (English source)

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.0.0 before 4.12.27, cx() in hono/css composes class names from plain strings but marks the result as already escaped without HTML-escaping the input, allowing untrusted className values used in a JSX class attribute during server-side rendering to break out of the attribute and inject arbitrary markup. This issue is fixed in version 4.12.27.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS