NLTK: Compile-time regex DoS
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.10.4 soon.
Data as of 20 Nov 2026, 00:28 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 3.10.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Upgrade nltk to 3.10.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade NLTK to version 3.10.4 or later, where this vulnerability is fixed. The fix includes pre-compilation checks that limit pattern complexity and group counts, preventing the quadratic compile-time cost. No other mitigation is required as the vulnerability is addressed by the official patch.
Description
NLTK versions 3.10.0 through 3.10.3 contain a compile-time regular-expression denial of service (ReDoS) vulnerability in their regex search and tokenizer functions. This vulnerability arises because the third-party regex engine used by NLTK compiles patterns with many capturing groups in roughly quadratic time, allowing an attacker to supply a crafted regex pattern that causes excessive CPU consumption during compilation. This leads to denial of service by exhausting CPU resources. The vulnerability does not affect confidentiality or integrity and is remediated in NLTK version 3.10.4.
References
- github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129229 (opens in a new tab)
- github.com/nltk/nltk/pull/3895 (opens in a new tab)
- github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412 (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)