—
PYSEC-2026-3730
Quick fix
PYSEC-2026-3730 — nltk: upgrade to the fixed version with the command below.
pip install --upgrade 'nltk>=3.10.0'Details
NLTK before 3.10.0 contains an arbitrary local file read vulnerability in StreamBackedCorpusView that bypasses pathsec.ENFORCE by calling builtins.open() directly instead of pathsec.open(). Attackers who control the fileid argument can read arbitrary local files regardless of the ENFORCE setting, including sensitive system files and application credentials.
Are you affected?
Enter the version of the package you're using.