Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time
CVE-2026-126192Published 12 Nov 2026, 17:09 UTC
Real-world risk
1.3/ 10Low
Routine
If the vulnerable configuration applies to you: 2.9
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| soupsieveNiche | < 2.10 | 2.10 |
What to do
Update to a fixed version: 2.10.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T3: Public proof of concept0.950
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.951.282
- Rounded to one decimal between 0.1 and 101.3
Exploitation and evidence timeline
- 12 Nov 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.3 (cvss fallback)
Weakness
CWE-400, CWE-407
References
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-4j63-6c4x-wfg4exploit, vendor-advisory
- https://github.com/facelessuser/soupsieve/pull/304misc
- https://github.com/facelessuser/soupsieve/commit/ffb88cca745c591224f74a8e86414a85e8f35fc0misc
- https://github.com/facelessuser/soupsieve/releases/tag/2.10misc
- CVE-2026-126192 on CVE.org