Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-59895 EUVD-2026-42327GHSA-w62v-xxxg-mg59

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

Published Jul 8, 2026 · Updated Jul 8, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
honojs hono >= 4.0.0, < 4.12.27 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.224.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono >= 4.0.0, < 4.12.27 4.12.27 GHSA-w62v-xxxg-mg59

References