Path traversal in Text Generation Web UI - #VU127416
Published: April 24, 2026
Text Generation Web UI
Detailed vulnerability description
The vulnerability allows a remote attacker to write or delete arbitrary files.
The vulnerability exists due to path traversal in character management functions in modules/chat.py when handling character names and filenames supplied through the Gradio API. A remote attacker can send specially crafted character data containing traversal sequences to write or delete arbitrary files.
The issue is reachable without authentication when the server is exposed with the --listen option.