{"id":"CVE-2026-126192","summary":"Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time","details":"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.","aliases":["GHSA-4j63-6c4x-wfg4"],"modified":"2026-11-13T10:31:02.531227541Z","published":"2026-11-12T17:09:14.205Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126192.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-400","CWE-407"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126192.json"},{"type":"FIX","url":"https://github.com/facelessuser/soupsieve/commit/ffb88cca745c591224f74a8e86414a85e8f35fc0"},{"type":"FIX","url":"https://github.com/facelessuser/soupsieve/pull/304"},{"type":"WEB","url":"https://github.com/facelessuser/soupsieve/releases/tag/2.10"},{"type":"ADVISORY","url":"https://github.com/facelessuser/soupsieve/security/advisories/GHSA-4j63-6c4x-wfg4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126192"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/facelessuser/soupsieve","events":[{"introduced":"0"},{"fixed":"fc195cd50a6b9a00a86531ab6b9a2e59bd26f608"},{"fixed":"ffb88cca745c591224f74a8e86414a85e8f35fc0"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.10"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"ffb88cca745c591224f74a8e86414a85e8f35fc0"}],"source":"REFERENCES_COMMIT"},{"original_tag":"2.10","range":[{"fixed":"fc195cd50a6b9a00a86531ab6b9a2e59bd26f608"}],"source":"REFERENCES_TAG"}]}}],"versions":["2.9.2","2.9.1","2.9","2.8.4","2.8.3","2.8.2","2.8.1","2.8","2.7","2.6","2.5","2.4.1","2.4","2.3.2.post1","2.3.2","2.3.1","2.3","2.2.1","2.2","2.1.0","2.0.1","2.0.0","1.9.4","1.9.3","1.9.2","1.9.1","1.9.0","1.8.0","1.7.3","1.7.2","1.7.1","1.7.0","1.6.1","1.6.0","1.5.0","1.4.0","1.3.1","1.3.0","1.2.1","1.2.0","1.1.0","1.0.2","1.0.1","1.0.0","1.0.0b2","1.0.0b1","0.6.0","0.5.3","0.5.2","0.5.1","0.5.0","0.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126192.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}