Link following in Natural Language Toolkit - CVE-2026-128137
Published: November 16, 2026
Vulnerability details
The vulnerability allows a local user to disclose file contents outside a corpus root but within globally allowed NLTK data roots.
The vulnerability exists due to improper link resolution and missing scoped-root validation in Natural Language Toolkit corpus-reader path pointers and view methods when opening paths containing intermediate-directory symlinks. A local user can place such a symlink directly or supply a corpus preserved with symlinks, then cause abspath()/abspaths() pointers or PlaintextCorpusReader/SyntaxCorpusReader views to traverse it to read files outside the corpus root.