Vulnerability in Nltk
CVE-2026-12261
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.
EPSS: 0.002 (10.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
Affected products
- Nltk
- Nltk Nltk/nltk — versions unspecified
Weakness classification (CWE)
References
- security@huntr.dev (Permissions Required)
Frequently asked questions
- What is CVE-2026-12261?
- CVE-2026-12261 is a medium-severity vulnerability in Nltk, classified under Improper Access Control. CVSS score: 6.5/10. Published 2026-08-07.
- How severe is CVE-2026-12261?
- Medium severity. CVSS v3 base score is 6.5 out of 10.