What’s Vulnerable › Vulnerabilities

CVE-2026-49477: Soup Sieve: Regular Expression Denial of Service (ReDoS) in soupsieve Selector Parser

Description

Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.8.4, the CSS selector parser in soupsieve contains a regular expression vulnerable to catastrophic backtracking when processing an attribute selector with an unterminated quoted value in soupsieve/css_parser.py, allowing an attacker who can supply untrusted CSS selector strings to soupsieve.compile() or Beautiful Soup .select() / .select_one() to cause CPU exhaustion and denial of service. This issue is fixed in version 2.8.4.

Affected products

How to fix

Upgrade to a fixed version: facelessuser soupsieve 2.8.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-49477 or the next vulnerability affects your stack