Read the docs

HTML injection in Hono css helper via split closing style tag

Priority LOW 16CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

The css helper in Hono from 3.12.0 before 4.13.16 escapes interpolated values separately, so it fails to neutralize a closing style tag split between template text and an interpolated value (CWE-79). During server-side rendering, the rest of the untrusted value is parsed as HTML. Attackers who control a string placed right after a less-than sign in a css template can inject HTML or script into pages viewed by others.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00262 18th percentileScored 2026-11-16
Fix Fixed hono (honojs): 4.13.16hono (npm): 4.13.16

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
honojshono3.12.0 to before 4.13.164.13.16Patch availableCNA
—hono (npm)3.12.0 to before 4.13.164.13.16Patch availableGHSA-3gg2-335m-rxc6
  • hono Vendorhonojs Affected 3.12.0 to before 4.13.16 Fixed in 4.13.16 Patch available CNA
  • hono (npm) Vendor— Affected 3.12.0 to before 4.13.16 Fixed in 4.13.16 Patch available GHSA-3gg2-335m-rxc6

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:hono:hono:*:*:*:*:*:*:*:*——honojs
  • cpe:2.3:a:hono:hono:*:*:*:*:*:*:*:* Versions — — ·honojs

Remediation

Update hono to version 4.13.16, which fixes the issue in both the honojs hono and npm hono entries.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA hono (honojs) Fixed in 4.13.16
  • Fix · GHSA-3gg2-335m-rxc6 hono (npm) Fixed in 4.13.16 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-126359
  2. 2026-11-13 Alias added: GHSA-3gg2-335m-rxc6
  3. 2026-11-13 Fix available: npm/[email protected] · GHSA-3gg2-335m-rxc6
  4. 2026-11-13 CVSS score added · GHSA-3gg2-335m-rxc6
  5. 2026-11-13 Weakness changed · GHSA-3gg2-335m-rxc6
  6. 2026-11-13 4 new references · GHSA-3gg2-335m-rxc6
  7. 2026-11-17 CISA SSVC decision points changed

References

  • TI-2024-21741 Hono vulnerable to Restricted Directory Traversal in serveStatic with deno CVSS 3.1MEDIUM 5.3
  • TI-2024-15441 @hono/node-server can't handle "double dots" in URL CVSS 3.1MEDIUM 5.3
  • TI-2024-32610 Hono vulnerable to bypass of CSRF Middleware by a request without Content-Type header. CVSS 3.1MEDIUM 5.9
  • TI-2024-29381 Hono CSRF middleware can be bypassed using crafted Content-Type header CVSS 3.1MEDIUM 5.0
  • TI-2026-39189 Hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest CVSS 3.1MEDIUM 4.8
  • TI-2026-23190 Hono: Arbitrary file access via serveStatic vulnerability CVSS 3.1CRITICAL 9.8
See all 67 →

Sources