CVE-2026-49477
HIGH 7.5CVSS 3.1Soup Sieve: Regular Expression Denial of Service (ReDoS) via Selector Parser
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.
- Published
- 14 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-836r-79rf-4m37PYSEC-2026-3072
- Sources
- NVDJSONOSV GHSA-836r-79rf-4m37JSONOSV PYSEC-2026-3072JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | facelessuser | soup_sievecpe:2.3:a:facelessuser:soup_sieve:*:*:*:*:*:beautiful_soup:*:* |
< 2.8.4 | 2.8.4 |
| OSV | PyPI | soupsieve | < 2.8.4 | 2.8.4 |
References
- https://github.com/facelessuser/soupsieve/commit/eb4397618709186c109400448c6043b728217dc3 · Patch
- https://github.com/facelessuser/soupsieve/releases/tag/2.8.4 · Release Notes
- https://github.com/facelessuser/soupsieve/security/advisories/GHSA-836r-79rf-4m37 · Exploit, Vendor Advisory, WEB
- https://github.com/facelessuser/soupsieve · PACKAGE
- https://pypi.org/project/soupsieve · PACKAGE
- https://github.com/advisories/GHSA-836r-79rf-4m37 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-49477 · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 14 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Jul 2026)