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

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2026-07-08T16:09:51.273Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-w62v-xxxg-mg59
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- honojs hono: >= 4.0.0, < 4.12.27
- hono (npm): from 4.0.0 before 4.12.27
- hono hono: from 4.0.0 before 4.12.27

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-w62v-xxxg-mg59> (vendor-advisory, web)
- <https://github.com/honojs/hono/commit/cd3f6f7194f0e5c9d4b26ae0cf232018d0f388fc> (patch, web)
- <https://github.com/honojs/hono/releases/tag/v4.12.27> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59895> (advisory)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2026-59895](https://www.cve.org/CVERecord?id=CVE-2026-59895), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-w62v-xxxg-mg59](https://github.com/advisories/GHSA-w62v-xxxg-mg59), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59895](https://nvd.nist.gov/vuln/detail/CVE-2026-59895), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59895 · Whole record: https://cve.day/CVE-2026-59895.json · Rebuilt by cve.day 2026-11-25T22:59:27.401Z
