CVE-2026-12259
Improper Input Validation in nltk/nltk
- State
- Published
- Severity
- 5.3 Medium
- Published
- Aug 3, 2026
- Updated
- Aug 3, 2026
- Reserved
- Jun 15, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 5.3 Medium | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | @huntr_ai |
Weaknesses
- CWE-494 Download of Code Without Integrity Check
Affected Products
| Product | Versions |
|---|---|
nltk/nltknltk |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.