CVE-2026-12259 PUBLISHED

Improper Input Validation in nltk/nltk

Assigner: @huntr_ai
Reserved: 15.06.2026 Published: 03.08.2026 Updated: 03.08.2026

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.

Metrics

CVSS Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS Score: 5.3

Product Status

Vendor nltk
Product nltk/nltk
Versions
  • affected from unspecified to latest (incl.)

References

Problem Types

  • CWE-494 Download of Code Without Integrity Check CWE