Symlink Vulnerability in NLTK Python Modules from Vendor NLTK
CVE-2026-128137
5.5MEDIUM
What is CVE-2026-128137?
The NLTK (Natural Language Toolkit) vulnerability allows local attackers to exploit symlinks present within the corpus reader path pointers. This flaw permits unauthorized access to files outside of the intended corpus root directory. Starting from version 3.9.4 through to 3.10.4, the validation of intermediate directory symlinks was not implemented consistently, leading to a potential data breach. In the impacted versions, an attacker able to create a symlink can manipulate path resolutions, potentially exposing sensitive data. While version 3.10.4 addresses this issue with path security enforcement, earlier versions lack these protections, increasing their risk profile.
Affected Version(s)
nltk >= 3.9.4, < 3.10.4
