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: 8.7 [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]
CVE-ID: CVE-2026-35485
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Text Generation Web UI

How to mitigate CVE-2026-35485

Install security update from vendor's website.

Text Generation Web UI - update to 4.3

External References

Related Security Bulletins