Path traversal in Natural Language Toolkit - CVE-2026-54292
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in FramenetCorpusReader.frame() when processing a caller-supplied frame name. A remote attacker can supply a crafted frame name containing traversal sequences to disclose sensitive information.
The issue bypasses the nltk.pathsec sandbox even when ENFORCE=True. If the target is not frame-shaped XML, parsing errors can still reveal file existence or readability.