Recursion Vulnerability in NLTK Natural Language Toolkit Affects Version Pre-3.10.4
CVE-2026-129230
5.5MEDIUM
What is CVE-2026-129230?
The Natural Language Toolkit (NLTK) contains a vulnerability in its handling of hypernym graphs prior to version 3.10.4. Specifically, functions such as max_depth, min_depth, hypernym_paths, and hypernym_distances can follow attacker-controlled pointers recursively. This behavior can create cycles or excessively deep structures resulting in RecursionError, causing traversal APIs and similarity operations to fail. The issue is mitigated in the updated version 3.10.4, which implements necessary safeguards.
Affected Version(s)
nltk < 3.10.4
