Recursion Issue in NLTK Python Toolkit Affects Natural Language Processing
CVE-2026-129226

5.3MEDIUM

Key Information:

Vendor

Nltk

Status
Vendor
CVE Published:
19 November 2026

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

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.