Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
CVE-2025-64496
Summary
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Versions through 0.6.34 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 (RCE) 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.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- REQUIRED
- LOW
- HIGH
- HIGH
CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
References
Advisory Timeline
- Published