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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.29% (22nd 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-19233535
  • published23 Aug 2026
  • disclosed22 Aug 2026
  • creditUnknown

Introduced: 22 Aug 2026

NewCVE-2026-62385  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade nltk to version 3.10.0 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 path handling in FramenetCorpusReader and NKJPCorpusReader. An attacker can read and parse arbitrary XML files outside the configured corpus root by supplying crafted selectors or poisoning index state. Attacker-controlled values passed through methods such as frame_by_name(), doc(), lu(), and header() can traverse outside the intended directory and access XML files readable by the application.

CVSS Base Scores

version 4.0
version 3.1