home / blog
2026-11-22 · medium
CVE-2026-129232: DoS in NLTK Puts XML Services at Risk
NLTK vulnerable to DoS via deeply nested XML. Patch in version 3.10.4.

CVE-2026-129232 is a Denial of Service (DoS) vulnerability in NLTK (Natural Language Toolkit), the open source Python suite for natural language processing. The vulnerability occurs when deeply nested XML, controlled by an attacker, is processed by the XMLCorpusView.read_block function, causing quadratic time complexity in Python and blocking the processing worker.
Severity is classified as medium with a CVSS score of 5.3. According to technical reports on GitHub, the vulnerability in the previous version causes quadratic time during XML processing, while the fixed version implements a limit for nesting. The vulnerability has been identified and fixed on November 19, 2026.
For defense, we recommend updating NLTK to version 3.10.4 or later. In environments where immediate updating isn't possible, implement depth limits for XML processing or validate XML documents before processing to prevent excessively nested files. Monitor systems for unusual XML processing that might exploit this vulnerability.
At a glance
- What
- DoS vulnerability in NLTK via deeply nested XML causing high CPU costs
- Severity
- Medium (CVSS 5.3)
- Affected versions
- NLTK before 3.10.4
- Fix
- Update to version 3.10.4 or later
- Status
- Officially published on 2026-11-19
- Action
- Update NLTK to version 3.10.4 or later
Sources: NVD, CVE-2026-129232