# CVE-2026-86000: Soup Sieve: Polynomial-time ReDoS (O(n²)) in the `IDENTIFIER` / `VALUE` selector sub-patterns

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-17T15:21:57.724Z
- Modified: 2026-10-01T17:56:08.291Z
- Also known as: GHSA-gjv8-xp57-g29c, PYSEC-2026-4170
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, 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.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.

(As written by CVE List.)

## Affected

- facelessuser soupsieve: < 2.9
- soupsieve (PyPI): before 2.9.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/facelessuser/soupsieve/security/advisories/GHSA-gjv8-xp57-g29c> (exploit, web)
- <https://github.com/facelessuser/soupsieve/commit/ce44e4996e6632871c18cdd7a7fb641be8ef34ef> (web)
- <https://github.com/facelessuser/soupsieve/releases/tag/2.9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-86000> (advisory)
- <https://github.com/facelessuser/soupsieve> (package)
- <https://pypi.org/project/soupsieve> (package)
- <https://github.com/advisories/GHSA-gjv8-xp57-g29c> (advisory)

## Sources

- CVE List: [CVE-2026-86000](https://www.cve.org/CVERecord?id=CVE-2026-86000), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-gjv8-xp57-g29c](https://github.com/advisories/GHSA-gjv8-xp57-g29c), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-86000](https://nvd.nist.gov/vuln/detail/CVE-2026-86000), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4170](https://osv.dev/vulnerability/PYSEC-2026-4170), CC-BY-4.0, modified 2026-10-01

---

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