nltk/tokenize/casual.py, compiled into TweetTokenizer.WORD_RE · URLS Regular Expression
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 8.7 High : upgrade to 3.10.1 soon.
Data as of 25 Nov 2026, 14:04 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.8_23, 3.10.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Aug 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 25 Nov 2026.
What to do
Upgrade nltk to 3.10.1; gptline to 1.0.8_23.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 14.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps-legacy/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/nobleOther threats | 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
A fix is available in NLTK version 3.10.1 and later, which bounds the label repetition in the URL matching regex to prevent catastrophic backtracking. Users should upgrade to version 3.10.1 or newer to remediate this vulnerability.
Description
The NLTK TweetTokenizer in gptline contains a denial of service vulnerability due to catastrophic regex backtracking in its URL matching regular expression. This flaw can cause exponential processing time when handling crafted inputs with many alternating label separators, potentially stalling services that tokenize untrusted social media text. A fix bounding the label repetition was introduced in version 3.10.1.
References
- ubuntu.com/security/CVE-2026-72818 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-72818 (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- pypi.org (opens in a new tab)
- github.com/cveproject/cvelistv5/tree/main/cves/2026/72xxx/cve-2026-72818.json (opens in a new tab)
- github.com/nltk/nltk/blob/3.9.4/nltk/tokenize/casual.py (opens in a new tab)
- github.com/nltk/nltk/issues/3704 (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.1 (opens in a new tab)
- nvd.nist.gov/vuln/detail/cve-2026-72818 (opens in a new tab)
- vulncheck.com/advisories/nltk-tweettokenizer-url-pattern-backtracks-catastrophically-on-naked-domain-like-input (opens in a new tab)
- github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa (opens in a new tab)
- security-tracker.debian.org/tracker/cve-2026-72818 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-72818 (opens in a new tab)
- github.com/nltk/nltk/pull/3701 (opens in a new tab)
- github.com/nltk/nltk/commit/e092ed52eccae642304448bffc8d23cb301f85c1 (opens in a new tab)