CVE-2026-126190: Soup Sieve: Polynomial-time denial of service in the descendant combinator

Published Nov 12, 2026
·
Updated

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(), selectone(), 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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Soup Sieve to a version that resolves this vulnerability.

    Fixed in 4.0

Event History

Nov 12, 2026
CVE Published
via MITRE·04:54 PM
Data Sourced
via MITRE·04:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications are exposed when they process attacker-influenced HTML or XML with Soup Sieve CSS selection APIs, including select(), select_one(), or Beautiful Soup CSS APIs, using selectors with descendant combinators such as "section div div". Processing trusted documents only is not affected.

2

What does an attacker need to do to trigger the issue?

An attacker needs to supply deeply nested HTML or XML that the application processes with an affected descendant-combinator selector. No authentication or user interaction is required according to the provided severity vector.

3

What is the impact of successful exploitation?

Repeated ancestor traversal can occupy a worker for seconds or minutes, causing a denial-of-service condition. The provided vector indicates availability impact without confidentiality or integrity impact.

4

What should be done if upgrading is not immediately possible?

Avoid applying descendant-combinator selectors to untrusted documents, especially against deeply nested input, and restrict processing to trusted documents where feasible. Selectors compiled with NOCACHE continue to use the old uncached behavior.

5

How can teams determine whether they remain affected after remediation?

Soup Sieve versions prior to 4.0 are affected. Upgrading to version 4.0 addresses the issue, but use of selectors compiled with NOCACHE continues to invoke the old uncached behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203