Recursive Attack Surface in NLTK Framework by Vendor
CVE-2026-129228
5.3MEDIUM
What is CVE-2026-129228?
The Natural Language Toolkit (NLTK), a suite of open-source Python modules designed for Natural Language Processing, has a vulnerability related to its ToolboxSettings.parse functionality. Versions before 3.10.4 allow for the construction of an attacker-controlled settings tree that is deeply nested. Unfortunately, the public helpers like to_settings_string and remove_blanks do not prevent excessive recursion. This can lead to RecursionError when handling deeply nested inputs, potentially terminating the operation and impacting service availability. The issue has been resolved in version 3.10.4.
Affected Version(s)
nltk < 3.10.4
