MEDIUM6.5
PYSEC-2026-3729
Quick fix
PYSEC-2026-3729 — nltk: upgrade to the fixed version with the command below.
pip install --upgrade 'nltk>=3.9.3'Details
NLTK before 3.9.3 fails to verify file integrity after downloading packages and before extraction in the downloader module. Attackers can perform man-in-the-middle attacks or DNS poisoning to inject malicious package contents that are extracted without validation.
Are you affected?
Enter the version of the package you're using.