Skip to main content

Hono CVE-2026-126359

| EUVDEUVD-2026-124740 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-12 GitHub_M GHSA-3gg2-335m-rxc6
3.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app interpolating untrusted value after '<' in css template
  2. Delivery
    Submit value starting with '/style>' plus HTML/script payload
  3. Exploit
    SSR assembles unescaped </style>, closing <Style /> early
  4. Execution
    Victim loads the server-rendered page
  5. Impact
    Injected script executes, exposing page-accessible data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application itself uses the hono/css css helper and interpolates a client-controlled string into a css template immediately after a literal '<' during server-side rendering - including two adjacent untrusted interpolations like ${prefix}${name}, or a '<' supplied by a preceding value, after which minification/comment-removal can also join '<' and '/' across parts. The attacker-controlled value must begin with '/' (e.g. '/style>...') to form the closing tag. Limiting factors: the dangerous template pattern is non-default developer code, not a built-in feature, so most hono/css usage is unaffected ('Other uses of the css helper are not affected'); the vector is unauthenticated (PR:N) but requires user interaction (UI:R) - a victim must view the rendered page; and only Hono versions 3.12.0 through 4.13.15 are affected. The only complete fix per the vendor is updating to 4.13.16; the stated workaround is to avoid interpolating untrusted values into css templates or ensure the text before an interpolation does not end with '<'.

Impact

This is a genuine but low-urgency issue, and the signals are consistent rather than conflicting. The CVSS base score is 3.4 (Low) with vector AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N: network-reachable and unauthenticated, but gated by high attack complexity and required user interaction (a victim must render/view the affected page). The vuln.today decision label is 'monitor', not act_now or emergency, which aligns with the low score. No KEV listing and no EPSS value were provided in the input, so there is no signal of active or probable exploitation; absence of these is not evidence of safety but does lower prioritization. No working exploit code is supplied - the GitHub advisory and the fix commit's regression tests demonstrate the injection mechanism (e.g. a payload of the form '/style><img src=x onerror=alert(1)>'), but these are fix artifacts, not a packaged exploit. The practical limiter is real: AC:H reflects that exploitation only works when an application already uses the hono/css css helper in a specific, non-idiomatic way (an untrusted value interpolated immediately after a literal '<' during SSR). This is a developer-coding-pattern dependency, so the real-world attack surface is a subset of Hono deployments, not all of them. Net: a real, correctly-rated low-severity XSS worth patching on normal cadence, not an emergency.

Exploit ScenarioDerived

An application server-side renders a page using hono/css where an attacker-controlled string is interpolated into a css template immediately after a literal '<' (e.g. content: '<${userValue}'). The attacker supplies a value beginning with '/style>...' so the assembled output emits a raw </style> that closes the <Style /> element early, and the remainder of the value - such as <img src=x onerror=alert(1)> - is parsed as HTML. When a victim views the rendered page, the injected script executes in their browser. No public, packaged exploit is identified at time of analysis, though the fix commit's regression tests illustrate the exact payload shape.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

Server-side rendering with the hono/css css helper in Hono 3.12.0 through 4.13.15 can emit a premature closing style tag when a client-controlled string is interpolated immediately after a literal '<', letting that string inject HTML or script into the page delivered to viewers. The escaping logic inspects each interpolated value in isolation, so a '<' contributed by the template text or by a preceding value can pair with a '/' at the start of the next untrusted value (or be joined by minification and CSS comment removal) to reconstitute a raw '</style>' sequence. The flaw is unauthenticated but requires user interaction - a victim has to view the rendered page - and only the narrow template pattern of interpolating untrusted data right after '<' is exposed; no public exploit was identified at time of analysis and the issue is not in CISA KEV, so priority is monitor. The vendor-released patch is 4.13.16.

RemediationAI

Update hono to 4.13.16, the version the vendor states contains the fix; the release is at https://github.com/honojs/hono/releases/tag/v4.13.16 and the patch diff is commit 15bbd96ad1b62a0b189db4fd8dc7bf8ef280c513, per advisory GHSA-3gg2-335m-rxc6 (https://github.com/honojs/hono/security/advisories/GHSA-3gg2-335m-rxc6), which the vendor describes as the only complete fix. If upgrading cannot be scheduled immediately, the vendor's stated workaround is to stop interpolating untrusted values into css templates, or to guarantee that the text immediately preceding an interpolation never ends with '<' - including the case of two adjacent untrusted interpolations such as ${prefix}${name} where a preceding value may itself supply the '<'; note this is a code-level constraint that must be applied and maintained at every call site and does not protect templates that still interpolate untrusted data after a '<'. Priority for most deployments is monitor rather than emergency: the vulnerable pattern is developer-authored rather than default framework behavior, exploitation requires a victim to view the rendered page, and no public exploit was identified at time of analysis.

Affected VersionsENISA

hono 3.12.0, < 4.13.16

Affected Packages

npm hono fix: 4.13.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hono is a JavaScript web framework that runs on any JavaScript runtime and ships a css helper (hono/css) implementing a CSS-in-JS pattern with a <Style /> element that is serialized during server-side rendering. The helper walks template parts and interpolated values, applying escaping to each value before concatenating them with the literal template text. Per CWE-79 (improper neutralization of input during web page generation), the escaping was context-insensitive across value boundaries: the rule intended to neutralize a '/' following '<' operated only within a single value, so it could not see a '<' that lived in the surrounding template or in a preceding interpolation. Because the serialized CSS is placed inside a <style> element, any unescaped '</style>' terminates that element early and promotes the remainder of the attacker-influenced string into HTML parsing context. Minification and CSS comment removal can further join separated fragments - for example '</**//style>' or '<' and '/style>' arriving from different template parts - producing the same closing tag after the per-value pass has already run. The upstream fix removes the per-value lookbehind in favor of escaping backslash and quote characters only, then applies a final replace of '</' with '<\/' on the minified style string so that the boundary condition is caught after all joins, array flattening and comment stripping have occurred. Affected package coordinates are cpe:2.3:a:honojs:hono:*:*:*:*:*:*:*:* covering the npm hono releases from 3.12.0 up to and including 4.13.15. The flaw is exploitable only in applications that place an untrusted string directly after '<' inside a css template, including adjacent interpolations such as ${prefix}${name}; all other uses of the css helper are unaffected.

Know when Hono gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 3.4 LOW
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N
vuln.today AI 4.7 MEDIUM

AV:N and UI:R since a victim must view the SSR page; AC:H because it only triggers on a specific non-default template layout; PR:N as no auth is needed; S:C with C:L/I:L for injected script affecting the browser context.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 12, 2026 - 23:03 EUVD

DescriptionCVE.org

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 &lt; 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 &lt;Style /&gt; element early and cause the remainder of the interpolated value to be interpreted as HTML. Applications that place an untrusted string immediately after &lt; 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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
popular JavaScript/edge framework, but vulnerable css-helper pattern is niche
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +17
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Hono

View all
CVE-2025-62610 HIGH POC
8.1 Oct 22

Improper authorization in Hono's JWT Auth Middleware (hono/jwt in the npm package 'hono', versions 1.1.0 through 4.10.1)

CVE-2024-32652 HIGH POC
7.5 Apr 19

The adapter @hono/node-server allows you to run your Hono application on Node.js. Rated high severity (CVSS 7.5), this v

CVE-2024-48913 MEDIUM POC
5.9 Oct 15

Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by

CVE-2026-126358 MEDIUM POC
5.3 Nov 12

RegExpRouter - the router Hono's default SmartRouter selects for most applications - fails to apply wildcard middleware

CVE-2026-71848 MEDIUM POC
5.3 Aug 07

Quadratic-complexity denial of service in Hono's `languageDetector` middleware (versions 4.12.0-4.12.33) allows unauthen

CVE-2026-47676 MEDIUM POC
5.3 May 28

Path prefix stripping in Hono's app.mount() API exposes mounted sub-applications to incorrect routing due to a raw-vs-de

CVE-2024-32869 MEDIUM POC
5.3 Apr 23

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.3),

CVE-2024-23340 MEDIUM POC
5.3 Jan 22

@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Rated medium severity (CVSS 5.3),

CVE-2024-43787 MEDIUM POC
5.0 Aug 22

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.0),

CVE-2026-71850 MEDIUM POC
4.8 Aug 07

Cross-user HTML disclosure in Hono's server-side rendering affects all applications using hono/jsx with memo()-wrapped c

CVE-2023-50710 MEDIUM POC
4.3 Dec 14

Hono is a web framework written in TypeScript. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploita

CVE-2026-27700 HIGH
8.2 Feb 25

Hono is a Web application framework that provides support for any JavaScript runtime. [CVSS 8.2 HIGH]

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy