HIGH7.5
PYSEC-2026-3728
Quick fix
PYSEC-2026-3728 — nltk: upgrade to the fixed version with the command below.
pip install --upgrade 'nltk>=3.10.0'Details
NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside the corpus root by supplying unsafe selectors or poisoned index state. Attackers can exploit frame_by_name, doc, lu, and header methods with crafted parameters to read arbitrary XML files accessible to the application.
Are you affected?
Enter the version of the package you're using.