Denial of Service Vulnerability in NLTK Python Modules by NLTK
CVE-2026-129229
7.5HIGH
What is CVE-2026-129229?
NLTK (Natural Language Toolkit) versions from 3.10.0 to 3.10.4 are prone to a denial of service vulnerability. The issue arises when TokenSearcher.findall and Text.findall accept user-controlled regular expressions with an unbounded number of capturing groups, which may lead to significant CPU resource exhaustion. This vulnerability allows attackers to send small unauthenticated requests that exploit the compile-time nature of the regex engine, leading to potential service disruptions. It is crucial for users to upgrade to version 3.10.4 or later, where this issue has been addressed.
Affected Version(s)
nltk >= 3.10.0, < 3.10.4
