VDB
Sign up

PYSEC-2026-3732

Quick fix

PYSEC-2026-3732 — nltk: upgrade to the fixed version with the command below.

pip install --upgrade 'nltk>=3.9.4'

Details

NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/nltk
Introduced in: 0Fixed in: 3.9.4
Fixpip install --upgrade 'nltk>=3.9.4'

References