Description
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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-407 — CWE-407: Inefficient Algorithmic Complexity
Affected products
| Vendor | Product | Versions |
|---|---|---|
| facelessuser | soupsieve | < 4.0 [affected] |
References
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-mmhr-3c5m-f64f (x_refsource_CONFIRM)
- https://github.com/facelessuser/soupsieve/pull/351 (x_refsource_MISC)
- https://github.com/facelessuser/soupsieve/commit/ff1a5ce7e5addc31626d7b6053511fecdb4f6320 (x_refsource_MISC)
- https://github.com/facelessuser/soupsieve/releases/tag/4.0 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 13 Nov 2026 08:05 UTC.