Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.18, the JSX renderer escapes style attribute object values for HTML but not for CSS. Untrusted input in a style object value or property name can therefore inject additional CSS declarations into the rendered style attribute. The impact is limited to CSS and does not allow JavaScript execution or HTML attribute breakout. This vulnerability is fixed in 4.12.18.
Published: 2026-05-13
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Prior to version 4.12.18, the Hono framework’s JSX renderer escapes style attribute object values for HTML but does not perform sanitization for CSS. Untrusted input that appears in a style object value or property name can therefore inject arbitrary CSS declarations into the rendered style attribute. This flaw is limited to CSS; it does not provide a path to JavaScript execution or HTML attribute breakout, yet it can modify the presentation of the page and potentially lead to phishing or UI redirection attacks. The problem is rooted in improper encoding of user-supplied data (CWE‑116) and improper filtering of style inputs (CWE‑74).

Affected Systems

The vulnerability affects Hono, a web framework developed by honojs, in all releases prior to 4.12.18. The affected code paths involve the JSX renderer that accepts style objects from user input.

Risk and Exploitability

The CVSS score of 4.3 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting it is not actively exploited in the wild. Attackers would need to supply crafted style object values or property names in requests that are rendered by the framework. Given the limited impact to CSS, the risk to confidentiality, integrity, and availability is moderate; however, the ability to alter page appearance can be used for social engineering.

Generated by OpenCVE AI on May 13, 2026 at 17:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Hono to version 4.12.18 or later to obtain the vendor fix.
  • If an upgrade is not immediately possible, sanitize all style object values and property names by allowing only a whitelist of known safe CSS properties and control characters.
  • As a temporary measure, configure the framework or your application to disable SSR rendering of style attributes or to enforce strict CSS escaping for all user-supplied style inputs.

Generated by OpenCVE AI on May 13, 2026 at 17:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qp7p-654g-cw7p Hono has CSS Declaration Injection via Style Object Values in JSX SSR
History

Thu, 14 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 13 May 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Hono
Hono hono
CPEs cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*
Vendors & Products Hono
Hono hono

Wed, 13 May 2026 15:15:00 +0000

Type Values Removed Values Added
Description Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.18, the JSX renderer escapes style attribute object values for HTML but not for CSS. Untrusted input in a style object value or property name can therefore inject additional CSS declarations into the rendered style attribute. The impact is limited to CSS and does not allow JavaScript execution or HTML attribute breakout. This vulnerability is fixed in 4.12.18.
Title Hono: CSS Declaration Injection via Style Object Values in JSX SSR
Weaknesses CWE-116
CWE-74
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-14T16:00:11.507Z

Reserved: 2026-05-06T15:49:25.193Z

Link: CVE-2026-44458

cve-icon Vulnrichment

Updated: 2026-05-14T16:00:07.483Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-13T16:16:57.837

Modified: 2026-05-13T18:32:16.733

Link: CVE-2026-44458

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-14T14:30:15Z

Weaknesses