Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
- State
- Published
- Severity
- 3.4 Low
- Published
- Nov 12, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 10, 2026
Description
Hono is a Web application framework that provides support for any JavaScript runtime. From 3.12.0 until 4.13.16, the css helper in hono/css escapes interpolated string values separately and therefore fails to neutralize a closing style tag when < ends the template text or a preceding value and / begins the next attacker-controlled value. During server-side rendering, the combined output can close the <Style /> element early and cause the remainder of the interpolated value to be interpreted as HTML. Applications that place an untrusted string immediately after < in a css template, including adjacent untrusted interpolations, can expose viewers to attacker-controlled HTML or script and information accessible to that page. Other uses of the css helper are not affected. This issue is fixed in version 4.13.16.
| Product | Versions |
|---|---|
| hono honojs | >= 3.12.0, < 4.13.16 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 3.4 Low | GitHub_M |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.