Recursion Vulnerability in NLTK Affects Natural Language Processing Features
CVE-2026-129225

5.3MEDIUM

Key Information:

Vendor

Nltk

Status
Vendor
CVE Published:
19 November 2026

What is CVE-2026-129225?

The NLTK (Natural Language Toolkit) suite of Python modules is exposed to a vulnerability where the DependencyGraph._tree and triples methods can execute recursive calls without a depth limit on versions 3.10.3 and earlier. An attacker can exploit this by creating deeply chained or cyclic dependency structures in CoNLL or Malt-TAB formats, which may lead to RecursionError. This could cause the parsing worker to abort unexpectedly. A fix has been implemented in version 3.10.4 to address this issue effectively.

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

.