CVE-2026-126190
HIGH 7.5CVSS 3.1Soup Sieve: Polynomial-time denial of service in the descendant combinator
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 4.0, Soup Sieve repeatedly walks the same ancestors while matching descendant combinators, and each additional descendant combinator raises the polynomial degree of the work on deeply nested attacker-influenced HTML or XML. Applications using selectors such as section div div through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while trusted-only document processing is not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.
- Published
- 12 Nov 2026
- Last modified
- 13 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-407
- Also known as
- GHSA-mmhr-3c5m-f64f
- Sources
- NVDJSONOSV GHSA-mmhr-3c5m-f64fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | soupsieve | < 4.0.0 | 4.0.0 |
References
- https://github.com/facelessuser/soupsieve/commit/ff1a5ce7e5addc31626d7b6053511fecdb4f6320 · WEB
- https://github.com/facelessuser/soupsieve/pull/351 · WEB
- https://github.com/facelessuser/soupsieve/releases/tag/4.0 · WEB
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-mmhr-3c5m-f64f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-126190 · ADVISORY
- https://github.com/facelessuser/soupsieve · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 12 Nov 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Nov 2026)