CVE-2026-12261
MEDIUM 6.5CVSS 3.1NLTK downloader allows cross-package resource and model poisoning
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.
- Published
- 7 Aug 2026
- Last modified
- 23 Oct 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-284
- Also known as
- GHSA-ffj6-66c4-86gwPYSEC-2026-3954
- Sources
- NVDJSONOSV GHSA-ffj6-66c4-86gwJSONOSV PYSEC-2026-3954JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nltk | nltkcpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* |
<= 3.9.4 | |
| OSV | PyPI | nltk | < 3.10.0 | 3.10.0 |
References
- https://huntr.com/bounties/8b8c381e-08a8-4e4f-bb46-a320c96a364f · Permissions Required, WEB, REPORT
- https://nvd.nist.gov/vuln/detail/CVE-2026-12261 · ADVISORY
- https://github.com/nltk/nltk/pull/3625 · WEB
- https://github.com/nltk/nltk/commit/7a5740af89feeb739193db766e11e85dfe78339c · WEB
- https://github.com/nltk/nltk · PACKAGE
- https://github.com/nltk/nltk/releases/tag/v3.10.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3954.yaml · WEB
- https://github.com/advisories/GHSA-ffj6-66c4-86gw · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 7 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Aug 2026)