CVE-2026-126192: Soup Sieve · General sibling combinator inside :has() matches untrusted HTML in quadratic time
Affects tootSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium.
Data as of 13 Nov 2026, 21:18 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 6.3 |
|---|
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewtootpkg:brew/tootOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
This quadratic time behavior is expected given the design of :has() and the general sibling combinator and is not considered a bug. Users should carefully design selectors to avoid applying :has() with general sibling combinators on elements with many children. Prefer using more restrictive combinators such as > or + inside :has() to limit traversal. Avoid overly general anchor selectors like *. If the risk is unacceptable, user input containing :has selectors can be scanned and rejected. Additionally, wrapping selector evaluations in timeouts can prevent long-running CPU consumption.
Description
CVE-2026-126192 describes a performance-related vulnerability in Soup Sieve when using the CSS selector pattern with a general sibling combinator inside :has(), such as div:has(a ~ b). This pattern causes quadratic time complexity in the number of sibling elements when matching against untrusted HTML, potentially leading to significant CPU consumption and denial of service. The issue arises because the selector engine performs nested scans without short-circuiting when the right-hand sibling element is absent. This behavior is inherent to the design of :has() and the general sibling combinator, and while optimizations exist, linear performance cannot be guaranteed in all cases. The vulnerability impacts availability by allowing an attacker to stall processing with crafted input. Mitigations include careful selector design, limiting the number of children on the anchor element, using more restrictive combinators inside :has(), scanning user input for :has usage, or applying timeouts to selector evaluations.
References
- github.com/facelessuser/soupsieve/security/advisories/GHSA-4j63-6c4x-wfg4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-126192 (opens in a new tab)
- github.com/facelessuser/soupsieve/pull/304 (opens in a new tab)
- github.com/facelessuser/soupsieve/commit/ffb88cca745c591224f74a8e86414a85e8f35fc0 (opens in a new tab)
- github.com/facelessuser/soupsieve (opens in a new tab)
- github.com/facelessuser/soupsieve/releases/tag/2.10 (opens in a new tab)