Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| facelessusersoupsieve | — | Not listed |
| pipsoupsieve |
< 2.10.0→ 2.10.0 |
2.10.0 |
| PyPIsoupsieve |
< 2.10.0→ 2.10.0 |
2.10.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-126192 py3-soupsieve Fix available
- Debian DEBIAN-CVE-2026-126192 soupsieve Fix available
- Ubuntu UBUNTU-CVE-2026-126192 soupsieve No fixed version in this record
Original description The description as published by the source.
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.10, matching a developer-authored selector that places the general sibling combinator inside :has() repeatedly scans each candidate element's following siblings when the right-hand side is absent, producing quadratic work on attacker-controlled HTML. Applications that evaluate a fixed selector such as div:has(a ~ b) over untrusted markup can have a worker occupied for minutes by a small document, while the adjacent sibling form and trusted-only document processing are not affected in the same way. This issue is fixed in version 2.10.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com