PT-2026-79260 · Pypi · Nltk

·

CVE-2026-72818

·

Published

2026-08-20

·

Updated

2026-09-10

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions NLTK versions prior to 3.10.1
Description The URLS regular expression in nltk/tokenize/casual.py, which is compiled into TweetTokenizer.WORD RE and used by TweetTokenizer.tokenize, contains an unbounded domain-label prefix. When processing input with many alternating label separators that lacks a trailing top-level domain, the regular expression engine explores an exponential number of partitions, leading to catastrophic backtracking. This results in high CPU consumption, where a few kilobytes of input can stall a single-threaded process for seconds or minutes. This issue affects services using TweetTokenizer or the casual tokenize function to process untrusted social-media text, allowing unauthenticated requests to cause a denial of service.
Recommendations Update to version 3.10.1.

Exploit

Fix

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-72818
GHSA-QX2G-XRX7-VFH8
PYSEC-2026-3870

Affected Products

Nltk