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

Published Aug 3, 2026
·
Updated

In nltk version 3.9.4, the nltk.downloader.Downloader.downloadpackage() 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.

Affected Software

1 affected component
nltk nltk=3.9.4

Event History

Aug 3, 2026
CVE Published
via MITRE·07:09 AM
Data Sourced
via MITRE·07:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12259?

CVE-2026-12259 has a medium severity rating of 5.3.

2

How do I fix CVE-2026-12259?

To fix CVE-2026-12259, update to nltk version 3.9.5 or later where the vulnerability has been addressed.

3

What are the potential risks associated with CVE-2026-12259?

The risk associated with CVE-2026-12259 includes the possibility of an attacker tampering with downloaded package content.

4

Which versions of nltk are affected by CVE-2026-12259?

CVE-2026-12259 affects nltk version 3.9.4.

5

Is user interaction required for CVE-2026-12259 to be exploited?

Yes, user interaction is required as the vulnerability involves downloading packages via the nltk downloader.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203