PT-2026-56840 · Pypi+1 · Soupsieve+1

CVE-2026-49477

·

Published

2026-07-09

·

Updated

2026-07-28

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions soupsieve (affected versions not specified)
Description The CSS selector parser in soupsieve contains a regular expression vulnerable to catastrophic backtracking, which occurs when the regex engine takes an exponential amount of time to process a specific input. This happens when the parser processes an attribute selector with an unterminated quoted value, causing the VALUE regex pattern in soupsieve/css parser.py to enter a loop of exponential backtracking. A small payload of approximately 300 bytes can cause the regex engine to hang for over 3 seconds, leading to a Regular Expression Denial of Service (ReDoS). This issue affects any application that passes untrusted CSS selector strings to the soupsieve.compile() function or Beautiful Soup's .select() and .select one() methods. The attack consumes CPU resources and can block worker threads, potentially leading to complete service denial in threaded or async web applications.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability. Avoid passing untrusted user input to the soupsieve.compile() function or Beautiful Soup's .select() and .select one() methods.

Exploit

DoS

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-49477
ECHO-A29A-2B91-4618
GHSA-836R-79RF-4M37
OPENSUSE-SU-2026:21342-1
PYSEC-2026-3072
RHSA-2026:23992
RHSA-2026:34119
SUSE-SU-2026:22660-1
SUSE-SU-2026:3239-1
SUSE-SU-2026:3240-1

Affected Products

Beautiful Soup
Soupsieve