# CVE-2026-126191: Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER

- Severity: High 7.5 (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:H`
- 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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-12T16:57:01.566Z
- Modified: 2026-11-13T19:19:23.660Z
- Also known as: GHSA-6655-6qjp-jx7x
- Weaknesses: 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 3.0, the CSS_ESCAPES and IDENTIFIER regular-expression subpatterns can backtrack exponentially on runs of ambiguous digit escapes in an attribute-name or tag position of an otherwise valid selector. The failure occurs during selector compilation through soupsieve.compile() or Beautiful Soup select() before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. This issue is fixed in version 3.0.

(As written by CVE List.)

## Affected

- facelessuser soupsieve: < 3.0
- soupsieve (PyPI): before 3.0.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/facelessuser/soupsieve/security/advisories/GHSA-6655-6qjp-jx7x> (web)
- <https://github.com/facelessuser/soupsieve/pull/300> (web)
- <https://github.com/facelessuser/soupsieve/commit/dbfa2854ff31a863326bd6660d4e55c6f068db9e> (web)
- <https://github.com/facelessuser/soupsieve/releases/tag/3.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126191> (advisory)
- <https://github.com/facelessuser/soupsieve> (package)

## Sources

- CVE List: [CVE-2026-126191](https://www.cve.org/CVERecord?id=CVE-2026-126191), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-6655-6qjp-jx7x](https://github.com/advisories/GHSA-6655-6qjp-jx7x), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-126191](https://nvd.nist.gov/vuln/detail/CVE-2026-126191), Public domain, modified 2026-11-13

---

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