{"schemaVersion":4,"id":"CVE-2026-126189","aliases":["UBUNTU-CVE-2026-126189","DEBIAN-CVE-2026-126189"],"status":"published","duplicateOf":null,"title":"Soup Sieve: Quadratic-time denial of service when matching `:has()`","description":"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.","dates":{"published":"2026-11-12T16:53:00.822Z","modified":"2026-11-16T19:10:30.470Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true}]},"epss":{"probability":0.00454,"percentile":0.41105,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00454,"percentile":0.41105}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00301,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00454,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00454,"percentile":0.41105}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity","description":"An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/407.html"}],"affected":[{"vendor":"debian","product":"soupsieve","name":"soupsieve","label":"soupsieve","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/soupsieve","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 4.1-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.1-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 4.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"soupsieve","name":"soupsieve","label":"soupsieve","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/soupsieve","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"facelessuser","product":"soupsieve","name":"soupsieve","label":"soupsieve","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.0.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.0.1","endInclusive":false}}],"versionsText":"< 4.0.1","eol":null,"hubHref":"/vendor/facelessuser/soupsieve"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/facelessuser/soupsieve/security/advisories/GHSA-8jvp-3x96-xpqw","label":"github.com/facelessuser/soupsieve/security/advisories/GHSA-8jvp-3x96-xpqw","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/facelessuser/soupsieve/pull/352","label":"github.com/facelessuser/soupsieve/pull/352","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/facelessuser/soupsieve/commit/0469c148f5501ec2127e0d65b77c2a1c395fa379","label":"github.com/facelessuser/soupsieve/commit/0469c148f5501ec2127e0d65b77c2a1c395fa379","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/facelessuser/soupsieve/commit/305fbf6b8c1f6ff05fec55d1e5bb28d80d22de44","label":"github.com/facelessuser/soupsieve/commit/305fbf6b8c1f6ff05fec55d1e5bb28d80d22de44","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/facelessuser/soupsieve/releases/tag/4.0.1","label":"github.com/facelessuser/soupsieve/releases/tag/4.0.1","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-126189","label":"ubuntu.com/security/CVE-2026-126189","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-126189","label":"www.cve.org/CVERecord?id=CVE-2026-126189","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-126189","label":"security-tracker.debian.org/tracker/CVE-2026-126189","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-12T16:53:00.822Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-16T19:10:30.470Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00454,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-16T19:10:30.470Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-16T19:10:30.470Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-16T19:10:30.470Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-16T19:10:30.470Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-16T19:09:38.560Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00454,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:02:28.116Z","stale":false,"partial":false}}