Bug 2572663 (CVE-2026-126189)

Summary: CVE-2026-126189 soupsieve: soupsieve: Denial of Service via inefficient evaluation of the :has() selector
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akhatavk, anpicker, aos-team-art-private, aprice, aruklets, asdas, bcaton, cmyers, crizzo, dkeler, dnakabaa, doconnor, dpaolell, ebourniv, eglynn, hasun, jdelft, jfula, jjoyce, jlanda, jowilson, jpretori, jsamir, jschluet, jupierce, kaycoth, kshier, lcouzens, lgarciaa, lhh, mbiarnes, mburns, mgarciac, nyancey, oezr, ometelka, pakotvan, ppalepu, ppostler, prdhamdh, ptisnovs, rbobbitt, sbunciak, sghai, shudeshp, sidsharm, simaishi, stcannon, sthirugn, suppawar, syedriko, thason, vlaad, xdharmai, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in soupsieve. When evaluating the :has() selector, the library repeatedly traverses descendant subtrees and re-evaluates parent elements on deeply nested or wide structures. A remote attacker can supply crafted HTML or XML documents to trigger quadratic matching time, leading to excessive CPU resource consumption and a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-12 17:01:18 UTC
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 4.0.1, Soup Sieve repeatedly searches descendant subtrees for each candidate evaluated by :has() and repeatedly reevaluates a parent containing :has(> ...) for each child, causing quadratic matching on deeply nested or wide attacker-influenced HTML or XML. Applications using ordinary fixed selectors through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while applications that process only trusted documents are not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.1.