CVE-2026-129227
Nested list input could interrupt NLTK syntax-tree construction
NLTK project · Natural Language Toolkit · syntax trees
First documented disclosure · Review checkpoint
Summary
An externally supplied syntax tree represented as a nested list could disrupt an NLP job.
Severity and exploitation evidence
Medium · 5.3/10 · CVSS 3.1. Severity source.
Exploitation not established: The NLTK advisory describes the vulnerability and its preconditions. The reviewed sources identify no malicious use.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The list-based tree constructor recursed once per nesting level without enforcing the tree depth limit used elsewhere.
Conditions required
An application builds a syntax tree from externally controlled nested lists.
Potential impact
Tree construction could raise an unhandled recursion error and stop a worker.
Affected versions and configurations
<= 3.10.3
Fix and mitigation status
3.10.4.
Practical next steps
Upgrade to NLTK 3.10.4 or a later fixed release.
Operating lesson
Apply the same depth limit to each supported tree representation.
Evidence and limits
The issue-specific patch was public by 2026-09-11. The fixed release shipped October 21. The November 15 maintainer advisory supplies the identifier and affected versions. This is a historical addition.
Sources
- NLTK public patch for syntax trees
Primary source ·
- NLTK 3.10.4 release notes
Primary source ·
- NLTK advisory GHSA-63wh-5r5m-wxr7
Primary source ·