External Control of File Name or Path Affecting nltk package, versions [,3.10.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-NLTK-19639047
  • published7 Sept 2026
  • disclosed2 Sept 2026
  • creditUnknown

Introduced: 2 Sep 2026

NewCVE-2026-81727  (opens in a new tab)
CWE-59  (opens in a new tab)
CWE-61  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade nltk to version 3.10.3 or higher.

Overview

nltk is a Natural Language Toolkit (NLTK) is a Python package for natural language processing.

Affected versions of this package are vulnerable to External Control of File Name or Path via the Downloader.download and Downloader.incr_download file-write path in nltk/downloader.py. An attacker who can place a hardlink inside a writable shared downloader root can make a normal package install overwrite the linked inode, mutating files outside the intended install tree.

CVSS Base Scores

version 4.0
version 3.1