XML Entity Expansion in Natural Language Toolkit - #VU141418
Published: August 11, 2026 / Updated: August 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to improper restriction of recursive entity references in DTDs in xml.etree.ElementTree parsing sites within NLTK when parsing crafted XML documents containing internal entity declarations. A remote attacker can supply a specially crafted XML document to cause a denial of service.
External entities are not resolved, so the issue is limited to memory amplification during XML parsing rather than file disclosure.