5.3Medium

CVE-2026-12259Improper Input Validation in nltk/nltk

nltk nltk/nltk Published: (3 months ago)

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.

Weakness (CWE): CWE-494

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
nltk nltk 3.9.4
nltk nltk/nltk unspecified – ≤ latest

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:nltk:nltk:3.9.4:*:*:*:*:*:*:*