Recursion Issue in NLTK Python Toolkit Affects Natural Language Processing
CVE-2026-129226
5.3MEDIUM
What is CVE-2026-129226?
The Natural Language Toolkit (NLTK) prior to version 3.10.4 contains a vulnerability where the read_type parser processes nested complex type strings without limitations on recursion depth. An attacker can exploit this by crafting an excessively nested type string or signature, which can lead to a RecursionError, causing the system's processing to abort unexpectedly. The issue poses risks for applications relying on NLTK for natural language processing tasks. The vulnerability has been addressed in the latest release, ensuring improved stability and security.
Affected Version(s)
nltk < 3.10.4
