CVE-2026-12261: Improper Access Control in nltk/nltk

Published Aug 7, 2026
·
Updated

A vulnerability in nltk.downloader in nltk/nltk versions <= 3.9.4 allows for cross-package resource and model poisoning. The downloader extracts package archives into shared namespaces such as corpora/ and taggers/ instead of package-isolated roots, and validates package integrity only after the archive has been written and extracted. This design flaw enables one package to overwrite another package's trusted resources within the same namespace, making the changes immediately active through ordinary NLTK APIs. This issue persists across fresh interpreter restarts and can affect downstream workflows, including machine learning pipelines and reproducibility-sensitive environments.

Affected Software

2 affected components
nltk/nltk<=3.9.4
nltk nltk<=3.9.4

Event History

Aug 7, 2026
CVE Published
via MITRE·06:25 AM
Data Sourced
via MITRE·06:25 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-12261?

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

2

How do I fix CVE-2026-12261?

To fix CVE-2026-12261, upgrade nltk/nltk to version 3.9.5 or later, which addresses the improper access control.

3

What types of attacks are possible with CVE-2026-12261?

CVE-2026-12261 allows for cross-package resource and model poisoning due to improper access control in the nltk.downloader.

4

Which versions of nltk/nltk are affected by CVE-2026-12261?

CVE-2026-12261 affects nltk/nltk versions 3.9.4 and earlier.

5

What are the implications of exploiting CVE-2026-12261?

Exploiting CVE-2026-12261 could lead to the corruption of shared resources in nltk/nltk, impacting model integrity.

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