Skip to main content
VulnerabilityPublished

CVE-2026-126191: Soup Sieve · Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER

Affects soupsieveSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126191· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 3.0.2 soon.

Data as of 13 Nov 2026, 17:35 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 3.0.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade soupsieve to 3.0.2.

Affected software

ProductAffectedFixed in
PyPIsoupsieveAffected
  • <3.0.2
Fixed in
  • 3.0.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Soup Sieve to version 3.0.2 or later, which contains the fix for this vulnerability. Avoid using versions prior to 3.0.2. Since the issue occurs during selector compilation, do not compile untrusted CSS selectors without proper validation or sanitization. Note that version 3.0.0 was yanked and should not be used.

Description

Soup Sieve versions prior to 3.0.2 contain a regular expression vulnerability in the IDENTIFIER/CSS_ESCAPES regex used during selector compilation. This flaw causes exponential backtracking on a sequence of ambiguous digit-escapes (\9) in CSS selectors, leading to denial of service by hanging the process at compile time. The issue affects the public soupsieve.compile() function and BeautifulSoup's .select() method when processing untrusted selector strings. The vulnerability is fixed in version 3.0.2 and later.

References

Community reviews

Loading reviews…