What’s Vulnerable › Vulnerabilities

CVE-2026-78681: NLTK before 3.10.3 Entity Expansion DoS via ElementTree

Description

NLTK versions before 3.10.3 use xml.etree.ElementTree to parse XML in multiple modules, which honors entity declarations in document DTDs. Attackers can craft XML payloads with nested entity declarations that expand from hundreds of bytes to megabytes in memory, causing denial of service.

Affected products

How to fix

Upgrade to a fixed version: nltk 3.10.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-78681 or the next vulnerability affects your stack