CVE-2026-129227: NLTK · Uncontrolled recursion in Tree.fromlist causes denial of service via deeply nested list input
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.10.4 when convenient.
Data as of 20 Nov 2026, 00:29 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 3.10.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Upgrade nltk to 3.10.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in NLTK version 3.10.4 that applies the MAX_TREE_DEPTH limit to Tree.fromlist, preventing unbounded recursion. Users should upgrade to version 3.10.4 or later to mitigate this issue. Until then, avoid processing untrusted deeply nested list inputs with Tree.fromlist or implement custom depth checks.
Description
NLTK's Tree.fromlist method recursively converts nested lists into Tree objects without limiting recursion depth, unlike Tree.fromstring which enforces a MAX_TREE_DEPTH limit. This lack of depth checking allows an attacker to cause a denial of service by providing deeply nested list input, triggering an unhandled RecursionError. The issue affects versions prior to 3.10.4 and is fixed in 3.10.4.
References
- github.com/nltk/nltk/security/advisories/GHSA-63wh-5r5m-wxr7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129227 (opens in a new tab)
- github.com/nltk/nltk/pull/3885 (opens in a new tab)
- github.com/nltk/nltk/commit/ae4c5c900a81608026a43bd4ed17ff048c447c8c (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)