Skip to main content
VulnerabilityPublished Updated

CVE-2026-49476: Pyspelling · Soup Sieve has Memory Exhaustion via Large Comma-Separated Selector Lists

Affects pyspellingSource GCVE Database

0
Compare

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

Data as of 22 Nov 2026, 18:23 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.12.1_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 13 Aug 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 21 Nov 2026.

What to do

Upgrade pyspelling to 2.12.1_2.

Affected software

ProductAffectedFixed in
Homebrewpyspellingpkg:brew/pyspellingOther threatsAffected
  • >=2.9 <2.12.1_2
Fixed in
  • 2.12.1_2

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

AI-suggested

A patch is available in soupsieve version 2.12.1_2 that fixes this issue. Users should upgrade to this version or later to mitigate the vulnerability. Until patched, applications should avoid passing untrusted or excessively large CSS selector strings to soupsieve.compile() or Beautiful Soup's .select()/.select_one().

Description

The soupsieve CSS selector parser used by Beautiful Soup 4 allocates unbounded memory when processing large comma-separated selector lists. An attacker can supply a crafted CSS selector string with many comma-separated items, causing the parser to allocate hundreds of megabytes of heap memory from a relatively small input, leading to memory exhaustion and denial of service. This affects applications that use soupsieve.compile() or Beautiful Soup's .select()/.select_one() with user-supplied selectors. The issue is fixed in version 2.12.1_2.

References

Community reviews

Loading reviews…