home / blog
2026-11-23 · medium
CVE-2026-128140: Denial of Service Vulnerability in NLTK
Denial of Service vulnerability in NLTK: infinite loop causes resource exhaustion.

CVE-2026-128140 affects NLTK (Natural Language Toolkit), an open source Python suite for Natural Language Processing. The issue resides in nltk.downloader, which from versions 3.6.7 to 3.10.4 does not track already visited collection nodes, causing infinite loops with resource exhaustion when processing indexes with circular or mutual references.
The vulnerability has a CVSS score of 6.5, classified as medium severity. It was officially published on NVD on 19/11/2026. There are public repositories that declare to contain exploits, as reported on 23/11/2026 on GitHub.
To defend, it is crucial to immediately apply the patch by updating NLTK to version 3.10.4, which fixes the problem by introducing tracking of already visited nodes. It is also advisable to verify collection indexes used to identify any circular references.
At a glance
- What
- Denial of Service vulnerability in NLTK where downloader follows collections without tracking already visited nodes
- Severity
- CVSS 6.5 (medium)
- Affected versions
- 3.6.7 to 3.10.4
- Fix
- Update to version 3.10.4
- Status
- Published on NVD on 19/11/2026
- Action
- Apply patch to version 3.10.4
Sources: NVD, CVE-2026-128140