CVE-2026-12259
In nltk version 3.9.4, the …
In nltk version 3.9.4, the `nltk.downloader.Downloader._download_package()` function writes downloaded package bytes to disk and may extract them before enforcing SHA-256 or MD5 checksum validation. This allows an attacker to tamper with the package response body for `info.url` through a compromised mirror, malicious proxy, or other source-substitution condition, leading to the installation of attacker-controlled package bytes. The vulnerability can result in malicious corpus or model content being trusted by downstream users or applications.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d
- github.com/nltk/nltk/security/advisories/GHSA-5wp5-5229-5g6q
- nvd.nist.gov/vuln/detail/CVE-2026-12259
- github.com/nltk/nltk/pull/3449
- github.com/nltk/nltk/commit/0e26734a61094b628d93e26dc18dd7302567ac46
- github.com/nltk/nltk/releases/tag/3.9.3
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3729.yaml
- www.vulncheck.com/advisories/nltk-before-missing-post-download-integrity-verification
- nvd.nist.gov/vuln/detail/CVE-2026-12259
- cve.org/CVERecord?id=CVE-2026-12259
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.