Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129222
Published: November 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by crashing applications processing dependency graphs.
The vulnerability exists due to uncontrolled recursion in NLTK's DependencyGraph.tree() and triples() when traversing dependency graphs without depth limits or effective cycle detection. A remote attacker can supply a Malt-TAB or CoNLL file containing thousands of chained tokens for traversal, or introduce cycles through direct graph manipulation, to trigger an unhandled RecursionError and crash the processing request, worker, or script.