Denial of Service Vulnerability in NLTK Natural Language Toolkit
CVE-2026-129231
5.3MEDIUM
What is CVE-2026-129231?
NLTK (Natural Language Toolkit) is an open-source suite of Python modules that supports research in Natural Language Processing. A vulnerability prior to version 3.10.4 exists in the SeekableUnicodeStreamReader.readline function, which may lead to excessive CPU consumption. By leveraging a specially crafted corpus file with a long unterminated line, attackers can exploit this flaw, causing inefficient processing in line-oriented corpus readers. This issue can result in service disruptions, affecting users dependent on the toolkit for their Natural Language Processing tasks. Upgrading to version 3.10.4 is essential to mitigate this risk.
Affected Version(s)
nltk < 3.10.4
