CVE-2026-126192
Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: geringes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | soupsieve | <= 2.9.2 | 2.10.0 |
Betroffene Produkte · Facelessuser
| Produkt | Betroffene Versionen |
|---|---|
| Soupsieve | vor 2.10 Version < 2.10 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-4j63-6c4x-wfg4
- https://github.com/facelessuser/soupsieve/pull/304
- https://github.com/facelessuser/soupsieve/commit/ffb88cca745c591224f74a8e86414a85e8f35fc0
- https://github.com/facelessuser/soupsieve/releases/tag/2.10
- https://github.com/advisories/GHSA-4j63-6c4x-wfg4
- https://nvd.nist.gov/vuln/detail/CVE-2026-126192