Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
3.4
CVE-2026-126359: Hono css helper can let attacker inject HTML
CVE-2026-126359 · published 9 days ago
Summary
The Hono web framework’s css helper, in versions from 3.12.0 through 4.13.15, can fail to block a closing style tag when attacker‑controlled text is placed in a template. This could allow malicious HTML or script to appear on a page that users view. Upgrade to Hono version 4.13.16 or later to resolve the issue.
What to do
- Update hono to version 4.13.16.
- Update GitHub Actions hono to version 4.13.16.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | – | hono |
>= 3.12.0, <= 4.13.15 Fix: upgrade to 4.13.16
|
| npm | GitHub Actions | hono |
>= 3.12.0, <= 4.13.15 Fix: upgrade to 4.13.16
|
Original advisory text
Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
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.
References
- https://github.com/honojs/hono/security/advisories/GHSA-3gg2-335m-rxc6 Vendor Advisory
- https://github.com/honojs/hono/commit/15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513 Patch
- https://github.com/honojs/hono/releases/tag/v4.13.16 URL
- https://github.com/advisories/GHSA-3gg2-335m-rxc6
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-1263... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126359 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published12 Nov 2026
Updated22 Nov 2026
First seen12 Nov 2026
Track software like this
Free during beta