GHSA-pv39-qrfq-g8gc: Duplicate Advisory NLTK: Missing Post-Download Integrity Verification Vulnerability
MODERATEGHSA-pv39-qrfq-g8gc is a MODERATE (CVSS 5.3) nltk: missing post-download integrity verification vulnerability (CWE-494: Download of Code Without Integrity Check) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves nltk: missing post-download integrity verification allows malicious package injection. Remediation is available in the latest vendor maintenance releases.
GHSA-pv39-qrfq-g8gc at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N).
How to Fix GHSA-pv39-qrfq-g8gc
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install nltk>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show nltk
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-pv39-qrfq-g8gc, inspect your installed packages using pip:
pip show nltk
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show nltk command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-494: Download of Code Without Integrity Check, where the product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-pv39-qrfq-g8gc Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nltk
|
PyPI |
≤ 3.9.2
|
|
References
Frequently Asked Questions
What is GHSA-pv39-qrfq-g8gc?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-pv39-qrfq-g8gc?
Is nltk affected?
What is the CVSS score of GHSA-pv39-qrfq-g8gc?
What CWE is associated with GHSA-pv39-qrfq-g8gc?
How can I check PyPI dependencies for GHSA-pv39-qrfq-g8gc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pv39-qrfq-g8gc",
"modified" : "2026-09-01T20:30:34Z",
"published" : "2026-08-03T09:32:37Z",
"withdrawn" : "2026-09-01T20:30:34Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-5wp5-5229-5g6q. This link is maintained to preserve external references.\n\n## Original Description\nIn 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "nltk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.9.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-12259"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/659ccf6d-12d4-4d4a-84c0-078633c35a5d"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-494" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-01T20:30:34Z",
"nvd_published_at" : "2026-08-03T08:17:17Z"
}
}