Path traversal in Natural Language Toolkit - CVE-2026-54293
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 related path handling in nltk/data.py when processing attacker-controlled nltk: resource URLs containing URL-encoded path separators or traversal segments. A remote attacker can supply a specially crafted resource identifier to disclose sensitive information.
The issue is caused by a decode-after-check flaw in which unsafe-path regex checks are performed before url2pathname() decodes percent-encoded sequences.