# CVE-2026-12259: Improper Input Validation in nltk/nltk

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-03T07:09:35.262Z
- Modified: 2026-10-23T22:10:00.160Z
- Also known as: GHSA-5wp5-5229-5g6q, GHSA-gf32-cmjh-8m9v, PYSEC-2026-3729, PYSEC-2026-4318
- Related: CVE-2026-63310
- Weaknesses: CWE-494
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

In nltk version 3.9.4, the `nltk.downloader.Downloader._download_package()` function writes downloaded package bytes to disk and may extract them before enforcing SHA-256 or MD5 checksum validation. This allows an attacker to tamper with the package response body for `info.url` through a compromised mirror, malicious proxy, or other source-substitution condition, leading to the installation of attacker-controlled package bytes. The vulnerability can result in malicious corpus or model content being trusted by downstream users or applications.

(As written by CVE List.)

## Affected

- nltk nltk/nltk: from unspecified up to latest
- nltk (PyPI): before 3.9.3; up to 3.9.2; up to 3.9.4
- nltk nltk: 3.9.4

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-5wp5-5229-5g6q> (exploit, evidence, web)
- <https://huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d> (permissions-required, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12259> (advisory)
- <https://github.com/nltk/nltk/pull/3449> (web)
- <https://github.com/nltk/nltk/commit/0e26734a61094b628d93e26dc18dd7302567ac46> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/3.9.3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3729.yaml> (web)
- <https://www.vulncheck.com/advisories/nltk-before-missing-post-download-integrity-verification> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63310> (advisory)
- <https://github.com/advisories/GHSA-5wp5-5229-5g6q> (advisory)

## Sources

- CVE List: [CVE-2026-12259](https://www.cve.org/CVERecord?id=CVE-2026-12259), CVE Terms of Use, modified 2026-08-03
- GitHub Advisory Database: [GHSA-5wp5-5229-5g6q](https://github.com/advisories/GHSA-5wp5-5229-5g6q), CC-BY-4.0, modified 2026-10-16
- GitHub Advisory Database: [GHSA-gf32-cmjh-8m9v](https://github.com/advisories/GHSA-gf32-cmjh-8m9v), CC-BY-4.0, modified 2026-10-16
- NVD: [CVE-2026-12259](https://nvd.nist.gov/vuln/detail/CVE-2026-12259), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3729](https://osv.dev/vulnerability/PYSEC-2026-3729), CC-BY-4.0, modified 2026-10-16
- PyPA Advisory Database: [PYSEC-2026-4318](https://osv.dev/vulnerability/PYSEC-2026-4318), CC-BY-4.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-12259 · Whole record: https://cve.day/CVE-2026-12259.json · Rebuilt by cve.day 2026-11-25T22:59:30.851Z
