{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-12259","id":"CVE-2026-12259","title":"Improper Input Validation in nltk/nltk","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 att","descriptionLong":"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.","published":"2026-08-03T07:09:35.262Z","updated":"2026-10-28T02:30:40.339380773Z","reserved":"2026-06-15T09:55:01.162Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"@huntr_ai"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"huntr.dev"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["nltk/nltk"],"affectedProducts":[{"vendor":"nltk","product":"nltk/nltk","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"nltk","purl":"pkg:pypi/nltk","ranges":["<3.9.3","<=3.9.2","<=3.9.4"],"fixed":["3.9.3"],"advisory":"GHSA-5wp5-5229-5g6q"}],"cwes":["CWE-494"],"aliases":["CVE-2026-63310","GHSA-5wp5-5229-5g6q","GHSA-gf32-cmjh-8m9v","PYSEC-2026-3729","PYSEC-2026-4318"],"references":[{"url":"https://huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d","tags":["Permissions Required","web","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12259","tags":["advisory"]},{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-5wp5-5229-5g6q","tags":["web","evidence"]},{"url":"https://github.com/nltk/nltk/pull/3449","tags":["web"]},{"url":"https://github.com/nltk/nltk/commit/0e26734a61094b628d93e26dc18dd7302567ac46","tags":["web"]},{"url":"https://github.com/nltk/nltk","tags":["package"]},{"url":"https://github.com/nltk/nltk/releases/tag/3.9.3","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3729.yaml","tags":["web"]},{"url":"https://www.vulncheck.com/advisories/nltk-before-missing-post-download-integrity-verification","tags":["web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63310","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-5wp5-5229-5g6q","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00101,"epssPercentile":0.00917,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-12259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12259","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-12259","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5wp5-5229-5g6q","ok":true,"note":"GHSA-5wp5-5229-5g6q"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gf32-cmjh-8m9v","ok":true,"note":"GHSA-gf32-cmjh-8m9v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-12259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}