Skip to content
High 7.5 Web Application

Vulnerability in justhtml

CVE-2026-4671 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

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

What is the problem

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

Affected scope

justhtmlバージョン1.18.0以前。

Severity

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

How to fix

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

Workaround

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

Detection

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

Affected packages

PackageAffected → Fixed
PyPIjusthtml
< 1.18.0→ 1.18.0
Original description The description as published by the source.

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.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details