Link following in Natural Language Toolkit - #VU141255
Published: August 7, 2026
Vulnerability details
The vulnerability allows a local user to disclose sensitive information.
The vulnerability exists due to improper link resolution before file access in nltk.corpus.reader.api.CorpusReader.open() and FileSystemPathPointer.join() when opening corpus files through a symlink placed under the corpus root. A local user can place or influence a symlinked path inside the allowed corpus root to disclose sensitive information.
The issue bypasses the intended filesystem boundary because the path check is performed on the lexical path rather than the resolved path after following symlinks.