INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2026-12261

NLTK downloader allows cross-package resource and model poisoning

CVE-2026-12261 ยท 2026-08-07 moderate

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Other weaknesses
Also involves
Data and Model Poisoning
Affected
nltk (PyPI)
CVSS
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS
0.2% chance of exploitation in 30 days

How it works, in short

The downloader extracts packages into shared directories and verifies integrity only afterwards, so one package can overwrite another's corpora and models. (Our summary, written by a model. The source text is below.)

Details

A vulnerability in nltk.downloader in nltk/nltk versions <= 3.9.4 allows for cross-package resource and model poisoning. The downloader extracts package archives into shared namespaces such as corpora/ and taggers/ instead of package-isolated roots, and validates package integrity only after the archive has been written and extracted. This design flaw enables one package to overwrite another package's trusted resources within the same namespace, making the changes immediately active through ordinary NLTK APIs. This issue persists across fresh interpreter restarts and can affect downstream workflows, including machine learning pipelines and reproducibility-sensitive environments.

References

Source: GitHub Advisory Database, used under CC BY 4.0.