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 以降へ更新してください。
justhtmlのCSSセレクタ処理とリンク化におけるDoS脆弱性。
justhtmlバージョン1.18.0以前。
膨大なCPUまたはメモリを消費し、可用性に影響を与える可能性があります。
justhtmlを1.18.0以降のバージョンにアップグレードします。
攻撃者が制御できるセレクタ文字列の評価を避けるべきです。
アプリケーションがセレクタ処理中に過剰なリソース消費を検出します。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PyPIjusthtml |
< 1.18.0→ 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
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com