Open WebUI Direct Connections SSE execute event code injection
CVE-2025-64496 is a code injection / cross-site scripting vulnerability in Open WebUI's Direct Connections feature. In affected versions, malicious external OpenAI-compatible model servers can send crafted Server-Sent Event (SSE) messages, specifically 'execute' events, that are handled insecurely by the client and result in arbitrary JavaScript execution in the victim's browser context. The issue affects Open WebUI versions prior to 0.6.35; supporting content also states versions up to and including 0.6.34 are affected, while another source references 0.6.224 and prior, but the consistent fix version is 0.6.35. Successful exploitation allows theft of authentication tokens such as JWTs stored in localStorage, leading to session hijacking and account takeover. If the compromised account has access to the Functions/Tools API, the attacker can submit authenticated Python code that is executed on the backend without effective sandboxing or validation, resulting in remote code execution on the server.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A high-severity flaw in Open WebUI (CVE-2025-64496) allows account takeover and potential remote code execution if a user connects to a malicious external AI model server.
A high-severity vulnerability in Open WebUI (up to and including version 0.6.34) allows attackers controlling a malicious model server to inject code via Server-Sent Events (SSE) when the 'Direct Connections' feature is enabled, leading to account takeover and potential remote code execution on backend servers.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.