home / blog
2026-11-22 · high
CVE-2026-129229: Denial of Service Vulnerability in NLTK
CVE-2026-129229: DoS vulnerability in NLTK 3.10.0-3.10.4 via regular expressions.

The CVE-2026-129229 vulnerability affects NLTK (Natural Language Toolkit), an open source Python suite for Natural Language Processing. The vulnerability concerns the TokenSearcher.findall and Text.findall functions, which accept caller-controlled regular expressions with an unbounded number of capturing groups. This allows small unauthenticated requests to exhaust CPU and deny service.
The vulnerability has a CVSS score of 7.5, classified as high. It has been identified in GitHub repositories describing the vulnerability, confirming the existence of untrusted search patterns that reach the third-party regex engine with quadratic compilation cost. The vulnerability has been patched in NLTK version 3.10.4.
Administrators should promptly apply the update to NLTK version 3.10.4. It is also recommended to review configurations using TokenSearcher.findall, Text.findall and RegexpTokenizer to identify potentially problematic regular expressions before applying the patch. In case the patch cannot be applied immediately, it is recommended to implement limits on the complexity of accepted regular expressions.
At a glance
- What
- Denial of service vulnerability in NLTK caused by regular expressions with unbounded capturing groups that can exhaust CPU resources.
- Severity
- CVSS 7.5 (high)
- Affected versions
- NLTK 3.10.0 up to 3.10.4
- Fix
- Update to NLTK 3.10.4
- Status
- Officially published on 19/11/2026
- Action
- Apply the patch and validate configurations of regular expression usage
Sources: NVD, CVE-2026-129229