XSS (Cross-Site Scripting) dans hono (CVE-2026-93981)
Résumé
XSS dans hono (CVE-2026-93981). Risque d'opérations non autorisées ou de divulgation. Exploitable via fallback. Atténuation : mise à jour vers 4.11.7 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
hono/jsx does not HTML-escape a plain string placed directly as a child or fallback of Suspense or ErrorBoundary, as the only child of a Context.Provider, or as the root value of renderToString() / renderToReadableStream() from hono/jsx/dom/server. Such a string is emitted as markup instead of text.
Details
These paths stringify their input and treat the result as already-escaped HTML, so a plain string passes through unchanged. Notable cases:
Suspense: a string child, or a stringfallbackwhile a child suspends. With streaming, the fallback reaches the browser in the initial chunk.ErrorBoundary: a string child alongside an asynchronous sibling. The all-synchronous case was fixed in 4.11.7 (GHSA-9r54-q6cx-xmh5).Context.Provider: a single string child. Multiple children are escaped.hono/jsx/dom/server: a string, or an array containing strings, passed as the root.
A lone {children} forwarded by a wrapper component is enough to reach these paths. Strings wrapped in an element, values from raw() or the html helper, and client-side rendering with hono/jsx/dom are not affected.
Impact
An attacker who controls a string rendered in an affected position can inject arbitrary HTML into the server-rendered page, leading to cross-site scripting under the application's origin.
This issue affects applications that render untrusted strings directly in one of the positions above during server-side rendering.
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-93981 a été découverte dans hono.
Des attaquants peuvent cibler un point d'entrée spécifique comme fallback à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 4.7/10.
Action : mettez à jour hono vers 4.11.7 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « hono CVE-2026-93981 » sur le site de l'éditeur.
CVE-2026-93981 (hono) — CWE-79 / CVSS v3 4.7
Vecteur d'attaque : distant (réseau) / non authentifié
Surface d'attaque : fallback / Suspense / ErrorBoundary / Context.Provider
Correctif : 4.11.7 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une XSS (CWE-79) affecte hono. Les attaquants atteignent le code vulnérable via fallback sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de hono. Surface d'attaque : fallback / Suspense / ErrorBoundary / Context.Provider.
Gravité : Moyenne (CVSS 4.7/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 4.11.7.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'hono' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
honoを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade hono to 4.11.7ステージング環境で 4.11.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web vulncheck.com
- web github.com
- web github.com
- web github.com