Directory Traversal Vulnerability in Stanford NLP Python Library
CVE-2026-59974
7.8HIGH
What is CVE-2026-59974?
The Stanza NLP library, designed for natural language processing tasks, contains a vulnerability that allows for directory traversal during the extraction of downloaded model and resource archives. Versions prior to 1.14.0 fail to validate member paths when using zipfile.ZipFile.extractall, making it possible for attackers to exploit this flaw. Maliciously crafted archives can overwrite files outside the intended model directory, potentially leading to unauthorized code execution by manipulating configuration files, SSH data, or even executable scripts. This issue has been addressed in version 1.14.0.
Affected Version(s)
stanza < 1.14.0
