Shellfeed logo Shellfeed

CVE-2026-126192 · MEDIUM

Summary: Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic time

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

Details

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.10, matching a developer-authored selector that places the general sibling combinator inside :has() repeatedly scans each candidate element's following siblings when the right-hand side is absent, producing quadratic work on attacker-controlled HTML. Applications that evaluate a fixed selector such as div:has(a ~ b) over untrusted markup can have a worker occupied for minutes by a small document, while the adjacent sibling form and trusted-only document processing are not affected in the same way. This issue is fixed in version 2.10.

Severity

MEDIUM — vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected packages

  • PyPI soupsieve [0 – 2.10.0]
  • GIT github.com/facelessuser/soupsieve [0 – fc195cd50a6b9a00a86531ab6b9a2e59bd26f608]

References

Posts about CVE-2026-126192