CVE-2026-59895
published medium CVSS 3.1 · 6.1Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| honojs | — | hono>= 4.0.0, < 4.12.27 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| honojs | hono | >= 4.0.0, < 4.12.27 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
3Provider assertions
2GitHub_M · cna
Hono: Server-Side XSS via JSX Escaping Bypass in cx() Utility
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1979cf7a71e0b6310c04ba7d5d7aab96a270a4afc250811e45413b18ce870f79
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record