Critical Vulnerabilities in Open WebUI Enable Remote Code Execution and Token Theft
Security researchers have identified a critical vulnerability in Open WebUI, a self-hosted enterprise interface for large language models (LLMs), that allows attacker-controlled model servers to inject malicious code into enterprise environments. The flaw, tracked as CVE-2025-64496, stems from insecure handling of Server-Sent Events (SSE) when connecting to external model endpoints via the "Direct Connections" feature. Exploiting this vulnerability, attackers can execute arbitrary JavaScript in the browser context, steal JSON Web Tokens (JWTs), and, in some cases, escalate privileges to achieve remote code execution (RCE) on backend servers, potentially compromising entire AI workloads and sensitive enterprise data.
The vulnerability affects Open WebUI versions up to and including 0.6.34 and has been addressed in version 0.6.35. Attackers can leverage the flaw by convincing users to connect to a malicious model endpoint, often under the guise of a "free GPT-4 alternative." Once exploited, the attacker gains persistent access to the victim's AI workspace, documents, chats, and embedded API keys. Security experts strongly recommend that organizations using Open WebUI update to the latest version immediately to mitigate the risk of exploitation and prevent unauthorized access to their AI infrastructure.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
2 events from the most recent confirmed update back to the earliest known activity.
Open WebUI fixes CVE-2025-64496 in version 0.6.35
The vulnerability was reported as affecting Open WebUI versions up to 0.6.34 and was fixed in version 0.6.35. Organizations were urged to patch immediately and apply mitigations such as short-lived rotating HttpOnly cookies and strict Content Security Policies.
Cato Networks discovers Open WebUI vulnerability CVE-2025-64496
Researchers at Cato Networks identified a critical flaw in Open WebUI's Direct Connections feature that lets attacker-controlled external model servers inject malicious code into enterprise AI backends. The issue can enable session token theft, account takeover, privilege escalation, and in some cases remote code execution on backend servers.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


