soupsieve descendant combinator polynomial-time denial of service
CVE-2026-126190
A Python HTML tool can be stalled by malicious documents.
- CVE
- CVE-2026-126190 (opens in a new tab)
- Score
- CVSS 7.5
- First seen
Mitigation
Update to 4.0 or later. If you cannot, use fewer descendant combinators in selectors on untrusted documents, use child combinators (a > b) where possible, limit document size and nesting depth, and run selection with a time limit.
Summary
Matching descendant combinators in soupsieve takes polynomial time on deeply nested HTML or XML, so applications processing untrusted documents can stall for seconds to minutes. Versions before 4.0 are affected.
Affected when
Descendant-combinator selectors run on untrusted documents
4 other Incidents of this product in the last 30 days
Incidents by product: soupsieve
Other recent Incidents of soupsieve
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)soupsieve · not fixed yet
- Debian 12 (bookworm)soupsieve · not fixed yet
Sources: Debian Security Tracker
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)