ADVISORYHIGH8d ago · Sep 8, 2026
NLTK: Entity-expansion DoS (billion laughs) via remaining raw ElementTree parses

NLTK users are exposed when its XML parsers process crafted documents.
Several XML parsing sites in NLTK still used xml.etree.ElementTree directly, which honours declarations in a document's internal DTD subset. A crafted document a few hundred bytes long can expand to megabytes in memory (each nesting level multiplies by…
Read it at nltk