What’s Vulnerable › Vulnerabilities
CVE-2025-64496: Open WebUI Affected by an External Model Server (Direct Connections) Code Injection via SSE Events
- Severity: high (CVSS 8.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 7.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-11-08 · updated 2026-06-17
- Weakness: CWE-95
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Versions 0.6.224 and prior contain a code injection vulnerability in the Direct Connections feature that allows malicious external model servers to execute arbitrary JavaScript in victim browsers via Server-Sent Event (SSE) execute events. This leads to authentication token theft, complete account takeover, and when chained with the Functions API, enables remote code execution on the backend server. The attack requires the victim to enable Direct Connections (disabled by default) and add the attacker's malicious model URL, achievable through social engineering of the admin and subsequent users. This issue is fixed in version 0.6.35.
Affected products
- open-webui: before 0.6.35 — fixed in 0.6.35
How to fix
Upgrade to a fixed version: open-webui 0.6.35. Check the vendor advisory for mitigations.
References
- https://github.com/open-webui/open-webui/commit/8af6a4cf21b756a66cd58378a01c60f74c39b7ca
- https://github.com/open-webui/open-webui/security/advisories/GHSA-cm35-v4vp-5xvx
- https://github.com/open-webui/open-webui/security/advisories/GHSA-cm35-v4vp-5xvx
Get alerted when CVE-2025-64496 or the next vulnerability affects your stack