本文へ移動
English version →

justhtml CSSセレクタ処理の不具合でサービス拒否が発生

CVE-2026-4671 SecPulse初出

概要

攻撃者が細工したCSSセレクタや巨大な文書、リンク化処理の入力により、CPUやメモリを過剰に消費させられ、サービスが停止するおそれがあります。影響を受けるのはPyPIの justhtml 1.18.0 より前の版で、1.18.0 で修正されています。1.18.0 以降へ更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

攻撃者が細工したCSSセレクタや巨大な文書、リンク化処理の入力により、CPUやメモリを過剰に消費させられ、サービスが停止するおそれがあります。影響を受けるのはPyPIの justhtml 1.18.0 より前の版で、1.18.0 で修正されています。1.18.0 以降へ更新してください。

何が問題か

justhtmlのCSSセレクタ処理とリンク化におけるDoS脆弱性。

影響範囲

justhtmlバージョン1.18.0以前。

重要度

膨大なCPUまたはメモリを消費し、可用性に影響を与える可能性があります。

修正方法

justhtmlを1.18.0以降のバージョンにアップグレードします。

暫定回避

攻撃者が制御できるセレクタ文字列の評価を避けるべきです。

検知方法

アプリケーションがセレクタ処理中に過剰なリソース消費を検出します。

影響パッケージ

パッケージ影響を受ける版 → 修正版
PyPIjusthtml
1.18.0 未満→ 1.18.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

justhtml before 1.18.0 contains multiple low-severity denial-of-service issues in CSS selector handling and linkification. Applications that evaluate attacker-controlled selector strings (via query(), matches(), or selector-based transforms), run selector matching over very large untrusted documents, construct DOM trees from untrusted structure, or enable linkification over attacker-controlled text may consume disproportionate CPU or memory. Triggers include oversized selectors, large selector lists, oversized compound selectors, long combinator chains, deeply nested functional pseudo-classes, repeated token/positional matching, cyclic DOM graphs causing non-terminating traversal, and punctuation-heavy or trailing-bracket linkification input. These are availability-only concerns and do not by themselves allow script execution, data disclosure, or sanitizer bypass. Default JustHTML(sanitize=True) usage is not expected to be exposed, since selectors are normally supplied by application code.

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく