Recursion Vulnerability in NLTK Affects Natural Language Processing Features
CVE-2026-129225
5.3MEDIUM
What is CVE-2026-129225?
The NLTK (Natural Language Toolkit) suite of Python modules is exposed to a vulnerability where the DependencyGraph._tree and triples methods can execute recursive calls without a depth limit on versions 3.10.3 and earlier. An attacker can exploit this by creating deeply chained or cyclic dependency structures in CoNLL or Malt-TAB formats, which may lead to RecursionError. This could cause the parsing worker to abort unexpectedly. A fix has been implemented in version 3.10.4 to address this issue effectively.
Affected Version(s)
nltk < 3.10.4
