Path traversal in Text Generation Web UI - CVE-2026-35487
Published: April 24, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in load_prompt() when handling a crafted API request for a prompt filename. A remote attacker can send a specially crafted request with directory traversal sequences to disclose sensitive information.
The issue is limited to reading .txt files, and the file content is returned verbatim in the API response.