Shellfeed logo Shellfeed

CVE-2026-126190 · HIGH (CVSS 7.5)

Summary: Soup Sieve: Polynomial-time denial of service in the descendant combinator

EPSS: 0.5% probability of exploitation in the next 30 days (percentile 45.9).

Details

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

HIGH (CVSS 7.5) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

  • PyPI soupsieve [0 – 4.0.0]
  • GIT github.com/facelessuser/soupsieve [0 – ff1a5ce7e5addc31626d7b6053511fecdb4f6320]

References

Posts about CVE-2026-126190