4.3medium
Hono: CSS Declaration Injection via Style Object Values in JSX SSR
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qp7p-654g-cw7p
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.18, the JSX renderer escapes style attribute object values for HTML but not for CSS. Untrusted input in a style object value or property name can therefore inject additional CSS declarations into the rendered style attribute. The impact is limited to CSS and does not allow JavaScript execution or HTML attribute breakout. This vulnerability is fixed in 4.12.18.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs hono | < 4.12.18 | CVE List |
| hono (npm) | before 4.12.18 | GitHub Advisory Database |
| hono hono | before 4.12.18 | NVD |
All scores
| GitHub_M | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Classification
What each source says
CVE List
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.18, the JSX renderer escapes style attribute object values for HTML but not for CSS. Untrusted input in a style object value or property name can therefore inject additional CSS declarations into the rendered style attribute. The impact is limited to CSS and does not allow JavaScript execution or HTML attribute breakout. This vulnerability is fixed in 4.12.18.
GitHub Advisory Database
Summary
The JSX renderer escapes style attribute object values for HTML but not for CSS. Untrusted input in a style object value or property name can therefore inject additional CSS declarations into the rendered style attribute. The impact is limited to CSS and does not allow JavaScript execution or HTML attribute breakout.
Details
style object values are serialized into a CSS declaration list and escaped for HTML attribute context only. Characters that act as CSS declaration boundaries — such as ;, comment markers, quoted strings, and block delimiters — are valid in HTML attribute content and can extend a value beyond its assigned property.
This issue arises when untrusted input is interpolated into a JSX style object and rendered server-side.
Impact
An attacker who can control the value or property name of a style object may inject arbitrary CSS declarations. This may lead to:
- Visual manipulation of the page, including full-viewport overlays usable for phishing
- Outbound requests to attacker-controlled hosts via CSS resource references such as
url(...) - Hijacking of UI affordances through layout, positioning, or visibility changes
This issue affects applications that render JSX on the server with style object values or property names derived from untrusted input.
NVD (es)
Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.12.18, el renderizador JSX escapa los valores de objeto del atributo style para HTML, pero no para CSS. Por lo tanto, una entrada no confiable en un valor de objeto de estilo o nombre de propiedad puede inyectar declaraciones CSS adicionales en el atributo style renderizado. El impacto se limita a CSS y no permite la ejecución de JavaScript ni la ruptura de atributos HTML. Esta vulnerabilidad se corrige en la versión 4.12.18.
References
| https://github.com/honojs/hono/security/advisories/GHSA-qp7p-654g-cw7p | vendor-advisory, web | |
| https://github.com/honojs/hono | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44458 changed 2026-05-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qp7p-654g-cw7p changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-44458 changed 2026-10-26 | Public domain |