Recursion Vulnerability in NLTK Natural Language Toolkit Affects Version Pre-3.10.4
CVE-2026-129230

5.5MEDIUM

Key Information:

Vendor

Nltk

Status
Vendor
CVE Published:
19 November 2026

What is CVE-2026-129230?

The Natural Language Toolkit (NLTK) contains a vulnerability in its handling of hypernym graphs prior to version 3.10.4. Specifically, functions such as max_depth, min_depth, hypernym_paths, and hypernym_distances can follow attacker-controlled pointers recursively. This behavior can create cycles or excessively deep structures resulting in RecursionError, causing traversal APIs and similarity operations to fail. The issue is mitigated in the updated version 3.10.4, which implements necessary safeguards.

Affected Version(s)

nltk < 3.10.4

References

CVSS V3.1

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

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.