Exponential Backtracking in NLTK TweetTokenizer Due to Unbounded Domain Labels
CVE-2026-72818

8.7HIGH

Key Information:

Vendor

Nltk

Status
Vendor
CVE Published:
20 August 2026

What is CVE-2026-72818?

The TweetTokenizer in NLTK is prone to performance issues due to an unbounded naked-domain branch in its URLS regular expression pattern. When processing input with numerous alternating label separators, the tokenizer experiences exponential backtracking, leading to significant delays in processing time for such inputs. This issue arises from the lack of a terminating top-level domain, which causes the tokenizer to explore a vast number of possible partitions before determining a failure. Consequently, services utilizing this tokenizer for untrusted social media text can face unacceptable slowdowns per request, impacting overall application performance.

Affected Version(s)

nltk 0 < 3.10.1

nltk 3.10.1

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

geo-chen
.