Skip to main content
CVE-2026-126193VulnerabilityPublished

soupsieve · Soup Sieve: Uncontrolled recursion

Affects soupsieveSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126193· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.0.2 when convenient.

Data as of 13 Nov 2026, 17:35 UTC

CVSS 3.1 base score
5.3Medium
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.15.3
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:L

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
  • >=0.4 <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

A fix is available in Soup Sieve version 3.0.2. Users should upgrade to this version or later to prevent uncontrolled recursion in nested pseudo-class selectors. Until upgraded, applications should consider catching RecursionError exceptions when parsing selectors to handle this failure mode gracefully. No other mitigation is documented or required.

Description

Soup Sieve's CSS selector parser has an uncontrolled recursion vulnerability when parsing nested pseudo-class selectors such as :is(), :not(), :where(), and :has(). An attacker supplying a deeply nested selector string (about 330 levels) can cause a RecursionError by exceeding Python's recursion limit. This leads to a denial of service for the individual request or task parsing the selector. The issue affects versions from 0.4 up to but not including 3.0.2, with a fix available in 3.0.2. No confidentiality or integrity impact is present, and the failure occurs before document matching.

References

Community reviews

Loading reviews…