VDB
Sign up

PYSEC-2026-3789

Quick fix

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

pip install --upgrade 'nltk>=3.10.2'

Details

NLTK versions before 3.10.2 contain a symlink-based sandbox bypass in FramenetCorpusReader that allows attackers to read arbitrary XML files outside the corpus root. Attackers can place symlinks with names containing no path separators inside the corpus subdirectory, which pass the path validation guard and are resolved to files outside the intended corpus root when accessed via frame_by_name(), _lu_file(), or doc() methods.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/nltk
Introduced in: 3.10.0Fixed in: 3.10.2
Fixpip install --upgrade 'nltk>=3.10.2'

References