home / blog
2026-11-22 · medium
CVE-2026-129230: Recursion in NLTK Causes RecursionError
CVE-2026-129230: Recursion vulnerability NLTK WordSynset, causes RecursionError. Update to version 3.10.4

CVE-2026-129230 identifies a vulnerability in NLTK's WordNet Synset functions, in the popular Python library for Natural Language Processing. The issue concerns the max_depth, min_depth, hypernym_paths and hypernym_distances functions, which follow attacker-controlled corpus pointers without protection against infinite recursion. A cyclic or overly deep hypernym graph causes a RecursionError that disrupts traversal and similarity operations.
The vulnerability severity is rated as medium (CVSS 5.5) and affects all NLTK versions before 3.10.4. The issue was reported in the NVD database on November 19, 2026, and confirmed by technical analyses on GitHub, where the comparison between the vulnerable (3.10.3) and fixed (3.10.4) versions was highlighted. No active exploits are currently reported, but the nature of the vulnerability could be exploited to cause denial of service.
Defense against CVE-2026-129230 requires immediate updating of NLTK to version 3.10.4 or later. System administrators should check their dependencies to identify any installations of the vulnerable library. In the absence of patches, it may be possible to implement mitigations by restricting access to WordNet data or manually introducing depth controls in applications that use these specific functions.
At a glance
- What
- Recursion vulnerability in NLTK WordNet Synset.max_depth, min_depth, hypernym_paths and hypernym_distances functions
- Severity
- Medium (CVSS 5.5)
- Affected versions
- Before 3.10.4
- Fix
- Update to version 3.10.4 or later
- Status
- Fix available
- Action
- Update NLTK to version 3.10.4 or later
Sources: NVD, CVE-2026-129230