Directory Traversal Affecting nltk package, versions *


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.43% (35th 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-ECHOLATEST-NLTK-18321524
  • published27 Jul 2026
  • disclosed9 Mar 2026

Introduced: 9 Mar 2026

CVE-2026-0846  (opens in a new tab)
CWE-36  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest nltk.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nltk package and not the nltk package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

A vulnerability in the filestring() function of the nltk.util module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by providing absolute paths or traversal paths. This vulnerability can be exploited locally or remotely, particularly in scenarios where the function is used in web APIs or other interfaces that accept user-supplied input.

CVSS Base Scores

version 3.1