Live threats

All CVEs / Nltk

CVE-2026-0847Nltk

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Mar 4, 2026
Updated
Jul 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nltk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI nltk < 3.9.3 3.9.3 pip install "nltk>=3.9.3"
PyPI nltk < 3.9.3 3.9.3 pip install "nltk>=3.9.3"

Per OSV / GitHub Advisories (GHSA-68j8-pq59-fqgm, PYSEC-2026-98). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nltknltk≤ 3.9.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.