{"id":"CVE-2026-86000","published":"2026-09-17T15:21:57Z","modified":"2026-09-17T15:45:49Z","title":"Soup Sieve: Polynomial-time ReDoS (O(n²)) in the `IDENTIFIER` / `VALUE` selector sub-patterns","vendor":"facelessuser","product":"soupsieve","tier":"tail","description":{"text":"Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.9, the selector parser in src/soupsieve/css_parser.py defines IDENTIFIER with adjacent quantified groups over overlapping character classes, and VALUE embeds IDENTIFIER for attribute selectors. When an attacker-controlled selector contains a long identifier or unquoted attribute-value run followed by input that makes the overall match fail, the regular expression engine explores quadratically many splits between the overlapping groups. User-controlled selectors can reach this path through soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select(), while applications using only hard-coded selectors are unaffected. The resulting CPU consumption can hold the Python GIL, exhaust application workers, and stall a service; successful plain identifier matches are linear, and the issue does not cause memory corruption or code execution. The issue is fixed in version 2.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00609,"percentile":0.50104,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/facelessuser/soupsieve/security/advisories/GHSA-gjv8-xp57-g29c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facelessuser/soupsieve/commit/ce44e4996e6632871c18cdd7a7fb641be8ef34ef","tags":["x_refsource_MISC"]},{"url":"https://github.com/facelessuser/soupsieve/releases/tag/2.9","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":10.02},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"facelessuser","affectedVersions":[{"vendor":"facelessuser","product":"soupsieve","versions":["< 2.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-17T15:45:31.018009Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"soupsieve","vulnerableRanges":["<2.9.0"],"patched":["2.9.0"],"from":["GHSA-gjv8-xp57-g29c","PYSEC-2026-4170"],"provenance":"source"}],"summary":{"text":"Soup Sieve, a CSS selector library used with Beautiful Soup 4, has a regular expression flaw in its selector parser (src/soupsieve/css_parser.py) in the IDENTIFIER and VALUE sub-patterns, which overlap and cause quadratic-time backtracking on crafted input. An attacker who can supply a selector string (for example through soupsieve.compile(), soupsieve.select(), or BeautifulSoup.select()) with a long identifier or unquoted attribute value followed by input that forces a match failure can consume CPU and stall the service, with applications that use only hard-coded selectors unaffected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:54Z"},"euvd":{"id":"EUVD-2026-81689","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-facelessuser-soupsieve-cve-2026-49476","parents":[{"from":"CVE-2026-49476","to":"CVE-2026-86000","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:soupsieve","fromFixed":"2.8.4","toFixed":"2.9.0","daysApart":65},{"kind":"same-code","provenance":"machine","files":["soupsieve/css_parser.py"],"commits":["https://github.com/facelessuser/soupsieve/commit/28108ab805818c832d9568142a99844fd95a0d39","https://github.com/facelessuser/soupsieve/commit/ce44e4996e6632871c18cdd7a7fb641be8ef34ef"],"basis":"rarely changed file"}]},{"from":"CVE-2026-85999","to":"CVE-2026-86000","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["soupsieve/css_parser.py"],"commits":["https://github.com/facelessuser/soupsieve/commit/cf198fcddc9230f06ed39f974eba0ce076b85cda","https://github.com/facelessuser/soupsieve/commit/ce44e4996e6632871c18cdd7a7fb641be8ef34ef"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-49476","published":"2026-07-14","fixed":"2.8.4","kev":false},{"cve":"CVE-2026-49477","published":"2026-07-14","fixed":"2.8.4","kev":false},{"cve":"CVE-2026-85999","published":"2026-09-17","fixed":"2.9.0","kev":false},{"cve":"CVE-2026-86000","published":"2026-09-17","fixed":"2.9.0","kev":false},{"cve":"CVE-2026-126192","published":"2026-11-12","fixed":"2.10.0","kev":false},{"cve":"CVE-2026-126191","published":"2026-11-12","fixed":"3.0.2","kev":false},{"cve":"CVE-2026-126193","published":"2026-11-12","fixed":"3.0.2","kev":false}],"package":"PyPI:soupsieve"}}