home / blog
2026-11-23 · high
CVE-2026-129222: Recursive vulnerability in NLTK causes crashes
NLTK vulnerable to unlimited recursion in tree() and triples() APIs with long CoNLL/Malt-TAB files.

CVE-2026-129222 identifies a vulnerability in NLTK (Natural Language Toolkit) where DependencyGraph.tree() and DependencyGraph.triples() functions walk parsed dependency edges through unbounded Python recursion without using a working cycle or depth guard. A crafted CoNLL or Malt-TAB dependency file containing a sufficiently long chain can raise RecursionError when documented traversal APIs are called, aborting the current worker.
The vulnerability has a CVSS score of 7.5, classifying it as high severity. The issue has been confirmed by a GitHub signal showing potential exploit existence. The vulnerability has been fixed in NLTK version 3.10.4.
IT teams and administrators should immediately update NLTK installations to version 3.10.4 to mitigate this risk. If updating is not possible, consider implementing input controls to limit dependency chain length. Monitor applications using NLTK for anomalous behavior.
At a glance
- What
- Unlimited recursion vulnerability in NLTK's DependencyGraph.tree() and DependencyGraph.triples() functions
- Severity
- CVSS 7.5 (high)
- Affected versions
- Versions before 3.10.4
- Fix
- Update to version 3.10.4
- Status
- Published on 11/19/2026
- Action
- Update NLTK to version 3.10.4
Sources: NVD, CVE-2026-129222