Download of code without integrity check in Natural Language Toolkit - #VU141249
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject malicious packages.
The vulnerability exists due to download of code without integrity check in the package downloader in nltk/downloader.py when downloading and extracting packages. A remote attacker can tamper with a downloaded package or supply a crafted package archive to inject malicious packages.
Exploitation may be possible via a man-in-the-middle attack during HTTP downloads, DNS poisoning to redirect requests to an attacker-controlled server, or a race condition on shared filesystems between file replacement and extraction.