VDB
Sign up

PYSEC-2026-3741

Quick fix

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

pip install --upgrade 'nltk>=3.10.3'

Details

NLTK versions before 3.10.3 contain a filesystem containment bypass vulnerability in the Downloader.download and Downloader.incr_download methods that allows attackers to overwrite files outside the install root through pre-existing hardlinks. Attackers with write access to a shared downloader directory can create hardlinks pointing to outside-root files that are then overwritten during normal package extraction, mutating files outside the intended install tree.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References