Denial of Service Vulnerability in NLTK by NLTK Project
CVE-2026-128140
6.5MEDIUM
What is CVE-2026-128140?
The NLTK (Natural Language Toolkit) library, widely used for natural language processing in Python, is susceptible to a denial of service attack due to an issue within its downloader module. Specifically, versions from 3.6.7 to 3.10.4 fail to track already visited collection nodes during the package-closure walk. This flaw can result in an infinite loop when processing self-referencing or mutually referencing collection indices, leading to increased memory usage and potential service denial. This vulnerability has been addressed in version 3.10.4, highlighting the importance of upgrading to maintain security.
Affected Version(s)
nltk >= 3.6.7, < 3.10.4
