Quadratic work in Soup Sieve :has() with general sibling combinator
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Soup Sieve before 2.10 (PyPI package soupsieve) is affected. When a developer-authored selector places the general sibling combinator inside :has(), matching repeatedly scans the following siblings of each candidate element when the right-hand side is absent, causing quadratic work (CWE-407). An unauthenticated remote attacker can supply a small HTML document to an application that evaluates a fixed selector such as div:has(a ~ b) over untrusted markup, occupying a worker for minutes.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| facelessuser | soupsieve | before 2.10 | 2.10 | Patch available | CNA |
| — | soupsieve (PyPI) | before 2.10.0 | 2.10.0 | Patch available | GHSA-4j63-6c4x-wfg4 |
- soupsieve Vendorfacelessuser Affected before 2.10 Fixed in 2.10 Patch available CNA
- soupsieve (PyPI) Vendor— Affected before 2.10.0 Fixed in 2.10.0 Patch available GHSA-4j63-6c4x-wfg4
Remediation
Upgrade Soup Sieve to version 2.10 or later. The PyPI package soupsieve is fixed in version 2.10.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA soupsieve (facelessuser) Fixed in 2.10
- Fix · GHSA-4j63-6c4x-wfg4 soupsieve (PyPI) Fixed in 2.10.0 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126192
- 2026-11-13 CISA SSVC decision points changed
- 2026-11-13 Alias added: GHSA-4j63-6c4x-wfg4
- 2026-11-13 Fix available: PyPI/[email protected] · GHSA-4j63-6c4x-wfg4
- 2026-11-13 CVSS score added · GHSA-4j63-6c4x-wfg4
- 2026-11-13 Weakness changed · GHSA-4j63-6c4x-wfg4
- 2026-11-13 6 new references · GHSA-4j63-6c4x-wfg4
References
Other 5
- 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/facelessuser/soupsieve
More facelessuser vulnerabilities
- TI-2026-90415 Soup Sieve exponential ReDoS in selector compilation via \9-run CVSS 3.1HIGH 7.5
- TI-2026-47703 pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors CVSS 3.1HIGH 7.5
- TI-2026-36631 Soup Sieve: Regular Expression Denial of Service (ReDoS) in soupsieve Selector Parser CVSS 3.1HIGH 7.5
- TI-2026-36630 Soup Sieve: Memory Exhaustion via Large Comma-Separated Selector Lists in soupsieve CVSS 3.1HIGH 7.5
- TI-2023-15603 Arbitrary file inclusion with the pymdowm-snippets extension CVSS 3.1HIGH 7.5
- TI-2026-90424 Uncontrolled recursion in Soup Sieve lets selectors exhaust stack CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-126192 · CVE Program
- CVE-2026-126192 · NVD
- FIRST EPSS
- GHSA-4j63-6c4x-wfg4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences