Path traversal in Natural Language Toolkit - #VU141252
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in nltk.data.load() and nltk.data.find() when processing user-supplied resource names containing percent-encoded traversal sequences. A remote attacker can supply a specially crafted resource name to disclose sensitive information.
This issue affects applications that pass user-controlled input to these functions, and percent-encoded sequences such as %2e%2e are decoded after path safety checks.