Path traversal in Text Generation Web UI - CVE-2026-35485

 

Path traversal in Text Generation Web UI - CVE-2026-35485

Published: April 24, 2026


Vulnerability identifier: #VU127422
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-35485
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: oobabooga
Affected software:
Text Generation Web UI

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to path traversal in load_grammar() in modules/ui_parameters.py when handling crafted requests to the /gradio_api/call/load_grammar endpoint. A remote attacker can send a specially crafted request with directory traversal sequences to disclose sensitive information.

Because the submitted dropdown value is not server-side validated and no file extension is appended, any file readable by the server process may be returned.


How to mitigate CVE-2026-35485

Install security update from vendor's website.

Sources