CVE-2026-70626
Description
NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.
How to fix
- nltk nltk3.9.4 or later
- nltk3.9.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nltk nltk | v < 3.9.4 | 3.9.4 |
| nltkPyPI | v < 3.9.4 | 3.9.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.