Intel

AIKIDO-2026-11057

soupsieve is vulnerable to Resource Exhaustion

Resource ExhaustionCVE-2026-49476 Published 2 days ago

75

High Risk

This Affects:

PYTHONsoupsieve
0.0.1 - 2.8.3
Fixed in 2.8.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to memory exhaustion via large comma-separated selector lists. The CSS selector parser creates one CSSSelector object per comma-delimited segment without enforcing a limit on the number of segments, so a relatively small crafted selector string passed to soupsieve.compile() or Beautiful Soup's .select() / .select_one() allocates hundreds of megabytes of heap memory (about a 488x amplification from input size). An attacker who can supply or influence the selector input can trigger memory exhaustion and denial of service. The fix caps the total number of selectors processed per pattern.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

soupsieve is vulnerable to Resource Exhaustion in versions 0.0.1 - 2.8.3.

How to fix this

Upgrade the soupsieve library to the patch version.