VDB
Sign up

PYSEC-2026-3726

Quick fix

PYSEC-2026-3726 — 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 arbitrary file read vulnerability in IPIPANCorpusReader methods that bypass nltk.pathsec validation entirely. Attackers can place a symlink in the corpus root directory and read arbitrary files accessible to the process by calling channels(), domains(), categories(), or fileids() methods with the symlink filename.

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