Link following in Natural Language Toolkit - #VU142771
Published: August 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper link resolution before file access in nltk.corpus.reader.ipipan, nltk.corpus.reader.crubadan, and nltk.corpus.reader.lin when processing attacker-influenced corpora under a trusted data root. A remote attacker can place a symlink inside the trusted corpus root that points to an external file and invoke normal corpus reader methods to disclose sensitive information.
Exploitation requires the application to process attacker-influenced corpora inside a trusted NLTK data root or trusted corpus directory with pathsec enforcement enabled.