Path traversal in Natural Language Toolkit - CVE-2026-12074
Published: November 22, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose parsed contents of readable XML files that match the expected structure and infer the existence or readability of other XML files outside the FrameNet corpus root.
The vulnerability exists due to path traversal in NLTK's FrameNet corpus reader when it opens XML paths without checking that they remain within the corpus root, bypassing the path sandbox even in strict mode. A remote attacker can supply a crafted frame name or provide a crafted corpus index processed by doc() or the lexical-unit loader to access out-of-root XML files.