CVE-2026-126304: NLTK 3.10.0 before 3.10.4 Symlink Escape in YCOECorpusReader

Published Nov 13, 2026
·
Updated

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 parsedsents() and taggedwords() return file content from other corpora or temporary files within the NLTK data sandbox.

Affected Software

1 affected component
pypi/nltk>=3.10.0<3.10.4

Event History

Nov 13, 2026
CVE Published
via MITRE·09:36 AM
Data Sourced
via MITRE·09:36 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using NLTK versions 3.10.0 through before 3.10.4 are exposed when they process a YCOE corpus controlled by an attacker. The attacker-controlled corpus must be able to contain psd or pos directory symlinks.

2

What does an attacker need to exploit it?

An attacker needs to control the YCOE corpus being parsed and plant symlinks named as psd or pos directories. No authentication or user interaction is required according to the supplied vector.

3

What data can be disclosed?

The issue can cause parsed_sents() and tagged_words() to return content from files outside the intended corpus root. The described exposure includes other corpora or temporary files within the NLTK data sandbox.

4

Which versions should be remediated?

Upgrade NLTK to 3.10.4 or later. Versions from 3.10.0 up to, but not including, 3.10.4 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203