Intel

AIKIDO-2026-11057

soupsieve is vulnerable to Resource Exhaustion

CVE-2026-49476Published Jun 3, 2026
June 3, 2026

75

CVE Score

High

Resource Exhaustion

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.

How do I fix this?

Upgrade the soupsieve library to the patch version.

Who does this affect?

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

Package

Versions

0.0.1 - 2.8.3

Fixed in 2.8.4

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea