8.7

CVE-2026-72818: nltk

CVSS: 8.7v4.0HighAwaiting analysis
AliasesGHSA-qx2g-xrx7-vfh8PYSEC-2026-3870UBUNTU-CVE-2026-72818
Published 20-08-2026Last modified 24-09-2026

Vulnerability summary

CVE-2026-72818 is a high (CVSS 8.7) vulnerability in nltk. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 53.8% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.74%
0%100%
Low · +0.24 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 20-08-2026
    PublishedVulnerability first disclosed.
  2. 24-09-2026
    Last modifiedVulnerability information updated.

Description

The URLS regular expression in nltk/tokenize/casual.py, compiled into TweetTokenizer.WORD_RE and applied by TweetTokenizer.tokenize, contains a naked-domain branch whose domain-label prefix [a-z0-9]+(?:[.\-][a-z0-9]+)* is unbounded. Input consisting of many alternating label separators can be partitioned in exponentially many ways, and because the branch also requires a trailing top-level domain that such input never supplies, the engine explores those partitions before failing at each offset. A few kilobytes of input therefore consumes seconds to minutes of single-threaded CPU, and the HANG_RE substitution performed before matching does not collapse the pattern. TweetTokenizer is intended for tokenizing untrusted social-media text, so any service that applies it, or the module-level casual_tokenize, to submitted text can be stalled per request without authentication. Version 3.10.1 bounds the label repetition.

CVSS metrics

11 scores · 7 sources · 2 versions

EPSS trend

Probability

0.74%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

+0.24 pp

From 0.51% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.74%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard2 products
  • nemo< 2.7.3-r27
  • open-webui< 0.11.3-r1
Debian1 product
  • nltkAll versions (No fix recorded) | < 3.10.3-1
Nltk1 product
PyPI1 product
  • nltk< 3.10.1
Ubuntu1 product
  • nltkAll versions (No fix recorded)
Wolfi1 product
  • open-webui< 0.11.3-r1

6 vendors · 7 products

References

19 links
Show all 19 references