CVE-2026-126304
Awaiting Analysis Awaiting Analysis - Queue

NLTK Symlink Escape Vulnerability in YCOECorpusReader

Vulnerability report for CVE-2026-126304, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

Description

NLTK from 3.10.0 before 3.10.4 contains a symlink escape vulnerability in YCOECorpusReader that allows attackers to read files outside the corpus root by planting psd or pos directory symlinks. Attackers controlling a YCOE corpus can make parsed_sents() and tagged_words() return file content from other corpora or temporary files within the NLTK data sandbox.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-13
Last Modified
2026-11-13
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
nltk nltk to 3.10.4 (exc)
nltk nltk From 3.10.0 (inc) to 3.10.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a symlink escape issue in NLTK's YCOECorpusReader component affecting versions 3.10.0 to 3.10.3. Attackers controlling a YCOE corpus can create symlinks named 'psd' or 'pos' pointing outside the corpus directory. When functions like parsed_sents() or tagged_words() are called, they may read and return file contents from other corpora or temporary files within the NLTK data sandbox.

Detection Guidance

Check NLTK version with pip show nltk. If version is between 3.10.0 and 3.10.3, the system is vulnerable. Inspect YCOE corpus directories for suspicious symlinks named psd or pos pointing outside the corpus root.

Impact Analysis

This vulnerability allows attackers to read sensitive files outside the intended corpus root but within the NLTK data sandbox. This could expose confidential data, such as files from other corpora or temporary files, leading to unauthorized information disclosure.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later using pip install --upgrade nltk. Remove or replace any YCOE corpora containing psd or pos symlinks. Avoid using untrusted YCOE corpora until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126304. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...