Advisory

PYSEC-2026-4318

Also known as: CVE-2026-12259, CVE-2026-63310, GHSA-5wp5-5229-5g6q, GHSA-gf32-cmjh-8m9v, PYSEC-2026-3729

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Dates

Published
2026-08-03 08:17 UTC
Modified
2026-10-16 10:56 UTC

Affected packages and fixes

nltk

PyPI · All systems

Affected

  • introduced 0, last affected 3.9.4 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences