Skip to content

CVE-2026-59895 Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility

MediumCVSS 6.1 EPSS 0.33%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Red Hat

Description

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.

Upgrade path

8 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform-27/mcp-server-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-tech-preview/mcp-server-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/mta/mta-solution-server-rhel9(Red Hat migration_toolkit_applications 8) All versions No fix listed No fix yet
redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) All versions No fix listed No fix yet
hono >= 4.0.0, < 4.12.27 4.12.27 Fixed
npm hono(npm) >= 4.0.0, < 4.12.27 4.12.27 Fixed
honojs hono = >= 4.0.0, < 4.12.27 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
honojs hono = >= 4.0.0, < 4.12.27 No fix listed
redhat/mta/mta-solution-server-rhel9(Red Hat:migration_toolkit_applications:8) All versions No fix listed
redhat/ansible-automation-platform-27/mcp-server-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-tech-preview/mcp-server-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) All versions No fix listed
redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
npm hono(npm) >= 4.0.0, < 4.12.27 4.12.27
hono >= 4.0.0, < 4.12.27 4.12.27

References