CVE-2026-126359: Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-3gg2-335m-rxc6
Summary
The Hono css helper fails to properly sanitize interpolated values that immediately follow a less-than character, potentially allowing HTML injection. Engineering teams using Hono versions 3.12.0 through 4.13.15 should update to 4.13.16 to mitigate this flaw.
Who is affected
Affected deployments are those where untrusted user input is interpolated into Hono css templates immediately following a '<' character. An attacker can close the style element early to inject arbitrary HTML or scripts into the rendered page. This vulnerability requires specific conditions involving the concatenation of template literals and interpolated strings.
Exploitability
The vulnerability has a low severity rating with a CVSS 3.1 score of 3.4, indicating it is difficult to exploit. It requires high complexity and user interaction, and the current EPSS score of 0.003 suggests a low probability of exploitation. It is not currently listed on the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the hono package to version 4.13.16 or later.
- Avoid interpolating untrusted values into css templates, especially in positions immediately following a '<' character.
How to check your project
- Check the package.json or lock files (package-lock.json, yarn.lock, pnpm-lock.yaml) for hono versions between 3.12.0 and 4.13.15.
- Audit the codebase for use of the 'css' helper where untrusted user input is interpolated directly after a '<' character.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | hono |
>= 3.12.0, < 4.13.16 | 4.13.16 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | Low |
| Integrity | None |
| Availability | None |
FAQ
Does this affect all Hono users?
No, it only affects users of the hono/css helper who interpolate untrusted data directly after a '<' character.
What is the primary risk associated with this flaw?
The primary risk is Cross-Site Scripting (XSS), where an attacker could execute arbitrary scripts in the context of a user's browser.
Is this vulnerability being actively exploited in the wild?
There is no evidence of active exploitation at this time, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- WEB https://github.com/honojs/hono/security/advisories/GHSA-3gg2-335m-rxc6
- WEB https://github.com/honojs/hono/commit/15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513
- PACKAGE https://github.com/honojs/hono
- WEB https://github.com/honojs/hono/releases/tag/v4.13.16
Source records: GHSA-3gg2-335m-rxc6 (OSV.dev) · EPSS by FIRST, 2026-11-21.