CVE-2026-126192: Soup Sieve · General sibling combinator inside :has() matches untrusted HTML in quadratic time
Affects lexiconSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 3.25.2_4 when convenient.
Data as of 13 Nov 2026, 21:21 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 6.3 |
|---|
- Patch
- Available – fixed in 3.25.2_4
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
Upgrade lexicon to 3.25.2_4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewlexiconpkg:brew/lexiconOther 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
A fix is available in Soup Sieve version 3.25.2_4. Users should upgrade to this version or later to benefit from performance improvements. Additionally, users should avoid running selectors with general sibling combinators inside :has() on untrusted or attacker-controlled HTML. Selector design should limit the number of children of the anchor element and use combinators like > or + inside :has() to reduce traversal. If risk remains, input containing :has() selectors can be blocked or calls wrapped in timeouts to prevent long-running evaluations. These mitigations align with the vendor's advisory that quadratic time behavior is expected in some cases and careful use of :has() is recommended.
Description
CVE-2026-126192 describes a performance issue in Soup Sieve when using a CSS selector with a general sibling combinator inside :has(), such as div:has(a ~ b). This selector runs in quadratic time relative to the number of sibling elements, causing significant CPU consumption and potential denial of service when processing untrusted HTML. The issue arises because the selector engine performs nested scans for each candidate element, leading to O(n²) complexity. This behavior is inherent to the design of :has() with general sibling combinators and is not classified as a bug but a known performance characteristic. A fix is available in version 3.25.2_4, which improves performance. Users are advised to limit the use of :has() with general sibling combinators on untrusted input and consider timeouts or input filtering to mitigate risk.
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)