—
PYSEC-2026-3722
Quick fix
PYSEC-2026-3722 — nltk: upgrade to the fixed version with the command below.
pip install --upgrade 'nltk>=3.10.0'Details
NLTK versions before 3.10.0 default to ENFORCE=False in pathsec.py, causing all security validation functions to emit warnings instead of raising exceptions. Attackers can bypass path traversal and pickle deserialization protections by exploiting the disabled security controls that are only active when manually enabled.
Are you affected?
Enter the version of the package you're using.