# CVE-2026-49477: Soup Sieve: Regular Expression Denial of Service (ReDoS) in soupsieve Selector Parser

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-09T13:37:46.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-836r-79rf-4m37, PYSEC-2026-3072
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- facelessuser soupsieve: < 2.8.4
- soupsieve (PyPI): before 2.8.4
- facelessuser soup_sieve: before 2.8.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/facelessuser/soupsieve/security/advisories/GHSA-836r-79rf-4m37> (exploit, vendor-advisory, web)
- <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> (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)

## Sources

- CVE List: [CVE-2026-49477](https://www.cve.org/CVERecord?id=CVE-2026-49477), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-836r-79rf-4m37](https://github.com/advisories/GHSA-836r-79rf-4m37), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49477](https://nvd.nist.gov/vuln/detail/CVE-2026-49477), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3072](https://osv.dev/vulnerability/PYSEC-2026-3072), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-49477 · Whole record: https://cve.day/CVE-2026-49477.json · Rebuilt by cve.day 2026-11-25T22:59:28.230Z
