CVE-2026-12259: CWE-494 Download of Code Without Integrity Check in nltk nltk/nltk
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.
AI Analysis
Technical Summary
The vulnerability in nltk 3.9.4's Downloader._download_package() function involves a lack of enforced checksum validation prior to writing and extracting downloaded package bytes. This enables an attacker controlling a mirror, proxy, or other source to substitute malicious package data without detection. As a result, downstream users or applications may trust and use compromised corpus or model content. The CVSS 3.0 vector indicates network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact.
Potential Impact
An attacker able to manipulate the package download source can cause the installation of malicious package content, compromising the integrity of corpora or models used by applications relying on nltk. This could lead to downstream trust in attacker-controlled data, potentially affecting data processing or machine learning outcomes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid downloading packages from untrusted or compromised sources and consider manually verifying package integrity if possible.
CVE-2026-12259: CWE-494 Download of Code Without Integrity Check in nltk 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 attacker-controlled package bytes. The vulnerability can result in malicious corpus or model content being trusted by downstream users or applications.
CVSS v3.0
Score 5.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in nltk 3.9.4's Downloader._download_package() function involves a lack of enforced checksum validation prior to writing and extracting downloaded package bytes. This enables an attacker controlling a mirror, proxy, or other source to substitute malicious package data without detection. As a result, downstream users or applications may trust and use compromised corpus or model content. The CVSS 3.0 vector indicates network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact.
Potential Impact
An attacker able to manipulate the package download source can cause the installation of malicious package content, compromising the integrity of corpora or models used by applications relying on nltk. This could lead to downstream trust in attacker-controlled data, potentially affecting data processing or machine learning outcomes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid downloading packages from untrusted or compromised sources and consider manually verifying package integrity if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-06-15T09:55:01.162Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a704b62bf32cb7a3433eaea
Added to database: 08/03/2026, 08:03:46 UTC
Last enriched: 08/03/2026, 08:19:41 UTC
Last updated: 08/04/2026, 02:05:30 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.