home / blog

2026-11-22 · medium

CVE-2026-129228: recursion vulnerability in NLTK

NLTK vulnerable to infinite recursion in ToolboxSettings. Patch available in version 3.10.4. CVSS 5.3.

CVE-2026-129228: recursion vulnerability in NLTK

CVE-2026-129228 identifies an infinite recursion vulnerability in the NLTK (Natural Language Toolkit) library. The issue resides in the ToolboxSettings.parse method which builds an attacker-controlled settings tree. Helper methods such as to_settings_string, remove_blanks, add_default_fields, sort_fields and add_blank_lines recursively traverse this tree without a depth bound, causing RecursionError when input exceeds the interpreter recursion limit.

Severity is rated CVSS 5.3 (medium) according to NVD. The issue was publicly identified on GitHub on November 22, 2026, where it's confirmed that version 3.10.4 fixes the depth limit. The current status is 'Published' on NVD since November 19, 2026, with consistent technical signals between official description and community report.

For defense, it's recommended to update NLTK to version 3.10.4 or later. If immediate patching isn't feasible, implement input validations to limit data structure depth or consider using sandboxing. Monitor logs for RecursionError during processing of Toolbox configuration files.

At a glance

What
Infinite recursion vulnerability in NLTK ToolboxSettings.parse
Severity
CVSS 5.3 (medium)
Affected versions
< 3.10.4
Fix
Update to version 3.10.4
Status
Published on 2026-11-19 on NVD
Action
Apply patches or validate input depth

Sources: NVD, CVE-2026-129228

← All articles