—
PYSEC-2026-3750
Quick fix
PYSEC-2026-3750 — nltk: upgrade to the fixed version with the command below.
pip install --upgrade 'nltk>=3.10.0'Details
NLTK versions before 3.10.0 contain a regular expression denial of service vulnerability in Text.findall() and TokenSearcher.findall() methods that accept user-supplied regular expressions without validation or timeout. Attackers can supply crafted regex patterns that cause catastrophic backtracking, resulting in indefinite CPU saturation and denial of service to all users of the Python process.
Are you affected?
Enter the version of the package you're using.