ADVISORIES

Vulnerability

CVE-2026-12259

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.

6 advisories report this vulnerability, across 3 ecosystems.

Medium severity All PyPI 4Debian 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2026-12259

    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…

    CVE-2026-12259 Debian Updated 24 October 2026
  • GHSA-5wp5-5229-5g6q

    NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection

    Moderate CVE-2026-12259CVE-2026-63310 PyPI Updated 16 October 2026
  • GHSA-gf32-cmjh-8m9v

    Duplicate Advisory: NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection

    Critical CVE-2026-12259CVE-2026-63310 PyPI Updated 16 October 2026
  • PYSEC-2026-3729

    NLTK before 3.9.3 fails to verify file integrity after downloading packages and before extraction in the downloader module. Attackers can perform man-in-the-middle attacks or DNS poisoning to inject malicious package…

    CVE-2026-12259CVE-2026-63310 PyPI Updated 16 October 2026
  • PYSEC-2026-4318

    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…

    CVE-2026-12259CVE-2026-63310 PyPI Updated 16 October 2026
  • UBUNTU-CVE-2026-12259

    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…

    CVE-2026-12259 Ubuntu Updated 17 October 2026

References