All vulnerabilities

npm

CVE-2026-126359

Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection

Severity
Low 3.4
Published
12 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.13.16
Exploit chance
0.3% in the next 30 daysHigher than 17% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
Also known as
GHSA-3gg2-335m-rxc6
Sources
OSV.dev and GitHub

Description

The css helper in hono/css escapes a / that follows < inside an interpolated value so that a value cannot close the `

when that string starts with /style>. During server-side rendering the element is closed early and the rest of the value is interpreted as HTML.

This issue arises only when < is the last character before an interpolation in a css template, either written in the template or supplied by a preceding value, and the interpolated value is controlled by a client.

A client that controls such a value can inject HTML, including script, into the page rendered on the server.

This may lead to:

  • Execution of attacker-controlled script in the browser of a user who views the page
  • Exposure of information available to that page

This issue affects applications that interpolate untrusted strings into a css template immediately after a <, including two adjacent interpolations such as ${prefix}${name} where both are untrusted. Other uses of the css helper are not affected.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Do not interpolate untrusted values into css templates, or make sure the text before an interpolated value does not end with <.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
hononpm · osv:npm:hono
  • From 3.12.0 before 4.13.16

About hono

Weekly downloads (npm)
113,589,642npm, 23 Nov 2026

References