Vulnerability in NLTK Natural Language Toolkit Affecting Python Modules
CVE-2026-128136
6.1MEDIUM
What is CVE-2026-128136?
The Natural Language Toolkit (NLTK) versions 3.10.0 to 3.10.3 contain a vulnerability that allows allowlisted pickle load keys to access potentially dangerous NumPy globals via export names. This opens the door for attackers to exploit submodule-local numpy.lib file input/output callables, evading strict denylisting implemented in the TransitionParser. By crafting a malicious pickle, an attacker may read local files or manipulate data using open_memmap, presenting significant risks when an untrusted model is loaded. The issue has been addressed in version 3.10.4.
Affected Version(s)
nltk >= 3.10.0, < 3.10.4
