ADVISORIES

PyPA Advisory Database

PYSEC-2026-3748

Details

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 packages

EcosystemPackageAffected versions
PyPInltk
All versions before 3.10.3 (fixed in 3.10.3)

References