Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M
CVE-2026-49476Soup Sieve: Memory Exhaustion via Large Comma-Separated Selector Lists in soupsieve
High 7.5
In plain English
A high-severity uncontrolled resource consumption in soupsieve from facelessuser. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 allocates unbounded memory when compiling large comma-separated selector lists, allowing an attacker who can supply a crafted selector string to soupsieve.compile() or Beautiful Soup .select() / .select_one() to allocate hundreds of megabytes of heap memory from a relatively small input and cause denial of service. This issue is fixed in version 2.8.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | soupsieve | no fix listed | DEBIAN-CVE-2026-49476 |
| Debian:13 | soupsieve | no fix listed | DEBIAN-CVE-2026-49476 |
| Debian:14 | soupsieve | 2.8.4-1 | DEBIAN-CVE-2026-49476 |
| PyPI | soupsieve | 2.8.4 | GHSA-2wc2-fm75-p42x |
| PyPI | soupsieve | 2.8.4 | PYSEC-2026-3071 |
| Ubuntu:22.04:LTS | soupsieve | no fix listed | UBUNTU-CVE-2026-49476 |
| Ubuntu:24.04:LTS | soupsieve | no fix listed | UBUNTU-CVE-2026-49476 |
| Ubuntu:26.04:LTS | soupsieve | no fix listed | UBUNTU-CVE-2026-49476 |
| Ubuntu:26.10 | soupsieve | no fix listed | UBUNTU-CVE-2026-49476 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| facelessuser | soupsieve | < 2.8.4 |
Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H