Inclusion of Functionality from Untrusted Control Sphere in Text Generation Web UI - #VU127429
Published: April 24, 2026
Text Generation Web UI
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to reliance on untrusted inputs in the transformers loader trust_remote_code handling when processing crafted HTTP POST requests to /queue/join that load a model. A remote attacker can send a specially crafted request to execute arbitrary code.
The trust_remote_code restriction is enforced only in the client-side web interface, and exploitation does not require the server to be started with the corresponding command-line option.