{"id":"CVE-2026-59895","published":"2026-07-08T16:09:51Z","modified":"2026-07-08T19:41:04Z","title":"Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility","vendor":"honojs","product":"hono","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00327,"percentile":0.26442,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/honojs/hono/releases/tag/v4.12.27","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.29},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"hono","versions":[">= 4.0.0, < 4.12.27"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-08T17:50:18.277447Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hono","vulnerableRanges":[">=4.0.0, <4.12.27"],"patched":["4.12.27"],"from":["GHSA-w62v-xxxg-mg59"],"provenance":"source"}],"summary":{"text":"The flaw is in the cx() utility of hono/css in the Hono web application framework, which affects versions from 4.0.0 up to but not including 4.12.27: cx() joins plain strings into class names and marks the result as already escaped without HTML-escaping the inputs. An attacker who can supply a className value that is rendered into a JSX class attribute during server-side rendering can break out of the attribute and inject arbitrary markup, but this requires a user to interact with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:52Z"},"euvd":{"id":"EUVD-2026-42327","exploited":false,"provenance":"source"}}