NLTK: Uncontrolled recursion
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 fix bounding recursion depth in the parsing and traversal helpers has been merged into the develop branch but is not yet released. Users should upgrade to version 3.10.4 or later once available to receive the fix. Until then, applications should avoid parsing untrusted deeply nested Toolbox settings files or implement their own recursion depth checks.
Description
NLTK's Toolbox settings helpers contain uncontrolled recursion when processing deeply nested input, leading to a denial of service via unhandled RecursionError. The recursion depth is unbounded in several helper functions that traverse the parsed element tree, allowing an attacker to cause application termination by supplying deeply nested settings files. The flaw does not affect confidentiality or integrity. A fix bounding recursion depth was merged but not yet released as of the latest data.
References
- github.com/nltk/nltk/security/advisories/GHSA-f2h2-f4fc-p978 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129228 (opens in a new tab)
- github.com/nltk/nltk/pull/3885 (opens in a new tab)
- github.com/nltk/nltk/commit/0b6975377d0334af604d32c9d83b26b46e1d437c (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)