Improper access control in Natural Language Toolkit - #VU141253
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper access control in FileSystemPathPointer.open() in nltk/data.py when handling file:// URLs through nltk.data.load() or user-influenced paths. A remote user can supply a crafted file:// URL or path to read arbitrary files accessible to the process and disclose sensitive information.
Applications are exposed when users can influence the string passed to nltk.data.load() or nltk.data.find().