Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129223
Published: November 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by crashing an application using NLTK.
The vulnerability exists due to uncontrolled recursion in the traversal helpers behind Synset.tree() and Synset.acyclic_tree() when traversing custom WordNet-format lexical resources with default unlimited depth. A remote attacker can supply an attacker-controlled resource containing a long acyclic relation chain that the application traverses to exhaust the Python call stack and trigger an unhandled RecursionError.