Skip to content
OpenAdvisories
High · 7.5 CVE-2026-78681 EUVD-2026-65227GHSA-97qj-x29f-37w7GHSA-jx89-3qg8-p2mrPYSEC-2026-3748

NLTK before 3.10.3 Entity Expansion DoS via ElementTree

Published Aug 25, 2026 · Updated Aug 26, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
nltk nltk < 3.10.3 3.10.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nltk 3.10.3-1 —
Debian 13 nltk No fix yet —
Debian 12 nltk No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.10.3 3.10.3 GHSA-97qj-x29f-37w7

References