CVE-2026-12261
nltk: NLTK: Resource poisoning via improper package archive extraction
Overview
Description
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weakness: CWE-284
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.10.0 | 3.10.0 |
Open a package to see all its vulnerabilities.
Operating systems · 6 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-12261
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/commit/7a5740af89feeb739193db766e11e85dfe78339c
- github.com https://github.com/nltk/nltk/pull/3625
- github.com https://github.com/nltk/nltk/releases/tag/v3.10.0
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3954.yaml
- huntr.com https://huntr.com/bounties/8b8c381e-08a8-4e4f-bb46-a320c96a364f
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-12261
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-12261
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.