Symlink Attack Affecting nltk package, versions [,3.9.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
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-19233403
  • published23 Aug 2026
  • disclosed22 Aug 2026
  • creditleduckhuong

Introduced: 22 Aug 2026

NewCVE-2026-70626  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade nltk to version 3.9.4 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 Symlink Attack via symlink handling in CorpusReader.open(). A local attacker can read arbitrary files outside the configured corpus root by placing symbolic links inside the corpus directory that resolve to files outside the intended boundary. Because path validation operates on the lexical path without validating the resolved symlink target, the symlink passes the directory restriction and is subsequently followed during file access.

CVSS Base Scores

version 4.0
version 3.1