# CVE-2026-126192: Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-12T17:09:14.205Z
- Modified: 2026-11-13T02:18:51.393Z
- Also known as: GHSA-4j63-6c4x-wfg4
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- facelessuser soupsieve: < 2.10
- soupsieve (PyPI): before 2.10.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/facelessuser/soupsieve/security/advisories/GHSA-4j63-6c4x-wfg4> (exploit, web)
- <https://github.com/facelessuser/soupsieve/pull/304> (web)
- <https://github.com/facelessuser/soupsieve/commit/ffb88cca745c591224f74a8e86414a85e8f35fc0> (web)
- <https://github.com/facelessuser/soupsieve/releases/tag/2.10> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126192> (advisory)
- <https://github.com/facelessuser/soupsieve> (package)

## Sources

- CVE List: [CVE-2026-126192](https://www.cve.org/CVERecord?id=CVE-2026-126192), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-4j63-6c4x-wfg4](https://github.com/advisories/GHSA-4j63-6c4x-wfg4), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-126192](https://nvd.nist.gov/vuln/detail/CVE-2026-126192), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126192 · Whole record: https://cve.day/CVE-2026-126192.json · Rebuilt by cve.day 2026-11-25T22:59:50.540Z
