Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129230
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled recursion without cycle detection or depth limits in NLTK's WordNet Synset max_depth, min_depth, hypernym_paths, and hypernym_distances methods when traversing untrusted corpus hypernym graphs. A remote attacker can supply a corpus containing cyclic or excessively deep hypernym pointers and induce the victim to load it and invoke a depth, path, or similarity method, triggering an uncaught RecursionError that terminates the traversal and potentially an unprotected worker.