CVE-2026-12261
A vulnerability in `nltk.downloader` in nltk/nltk versions <= 3.9.4 …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- huntr.com/bounties/8b8c381e-08a8-4e4f-bb46-a320c96a364f
- nvd.nist.gov/vuln/detail/CVE-2026-12261
- github.com/nltk/nltk/pull/3625
- github.com/nltk/nltk/commit/7a5740af89feeb739193db766e11e85dfe78339c
- github.com/nltk/nltk/releases/tag/v3.10.0
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3954.yaml
- github.com/advisories/GHSA-ffj6-66c4-86gw
- nvd.nist.gov/vuln/detail/CVE-2026-12261
- cve.org/CVERecord?id=CVE-2026-12261
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.