Link following in Natural Language Toolkit - CVE-2026-128137

 

Link following in Natural Language Toolkit - CVE-2026-128137

Published: November 16, 2026


Vulnerability identifier: #VU166235
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-128137
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to disclose file contents outside a corpus root but within globally allowed NLTK data roots.

The vulnerability exists due to improper link resolution and missing scoped-root validation in Natural Language Toolkit corpus-reader path pointers and view methods when opening paths containing intermediate-directory symlinks. A local user can place such a symlink directly or supply a corpus preserved with symlinks, then cause abspath()/abspaths() pointers or PlaintextCorpusReader/SyntaxCorpusReader views to traverse it to read files outside the corpus root.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-128137

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins