Denial of Service Vulnerability in NLTK Natural Language Toolkit
CVE-2026-129232
5.3MEDIUM
What is CVE-2026-129232?
The Natural Language Toolkit (NLTK) is a comprehensive suite of tools for Natural Language Processing. In versions prior to 3.10.4, a vulnerability was identified in XMLCorpusView.read_block, which processes deeply nested XML structures in a manner that can lead to significant performance degradation. Specifically, the method reconstructs the entire path context for every start tag in a way that, when faced with attacker-controlled corpus XML data, causes excessive computational effort known as quadratic complexity. This flaw can effectively consume processing resources, leading to service interruptions and denial of service. The issue has been addressed in NLTK version 3.10.4, which mitigates this behavior.
Affected Version(s)
nltk < 3.10.4
