CVE‑2025‑64496: Critical Open WebUI Remote Code Execution Vulnerability
Attackers weaponize "free model" servers to run arbitrary code and hijack workspaces.
Published on January 9, 2026
Themes:WebUIOpenvulnerabilitycriticalRCEinjectioncodeCVE‑2025‑64496
- A high‑severity flaw (CVE‑2025‑64496) in Open WebUI’s Direct Connections feature lets attacker‑controlled model endpoints inject malicious JavaScript via unsafe SSE “execute” messages, enabling silent token theft and code execution.
- Stolen non‑HttpOnly JWTs grant full access to chats, documents, API keys, and SSO; enterprise users with tool permissions face further escalation through unsandboxed Python execution for remote code execution.
- The issue affects all versions up to 0.6.34 and is patched in 0.6.35; researchers urge disabling Direct Connections in production, enforcing strict CSP, and using short‑lived HttpOnly cookies.
Open WebUI's red-hot Direct Connections feature just got weaponized into a hacker's dream, letting shady "free model" servers pump malicious JavaScript straight into users' browsers for instant token heists and remote code execution carnage. Tracked as CVE-2025-64496, this high-severity bomb (CVSS 8.0/10 on NVD, 7.3/10 elsewhere) hits all versions up to 0.6.34, where attacker-controlled endpoints exploit unsafe Server-Sent Events (SSE) tagged "{type: execute}" to fire off dynamic code via `new Function()`. No clicks needed - just trick a victim into enabling the feature (off by default) and plugging in a bogus URL like a "free GPT-4 clone" shared on Slack, as flagged by Cato CTRL researchers.
The chaos kicks off with browser-side script raids on localStorage, snatching non-HttpOnly JSON Web Tokens for unlimited access to chats, docs, API keys, and SSO goldmines. "If an employee connects Open WebUI to an attacker-controlled model endpoint... the frontend can be tricked into silently executing injected JavaScript," warns CSO Online, stealing persistent JWTs for full workspace domination. Enterprise victims with `workspace.tools` perms? Attackers escalate via the Tools/Functions API, shoving unsandboxed Python for RCE - think backdoors, lateral moves, and looting internal networks from "privacy-first" AI setups.
Open WebUI's massive footprint amps the panic: 120k+ GitHub stars, 16.9k forks, and deployments feeding thousands of seats at big orgs worldwide. Discovered Oct. 8, 2025, and spilled publicly Nov. 7, the fix landed in v0.6.35 via backend middleware tweaks in commit 8af6a4c, blocking "execute" SSE from Direct Connections. Cato urges short-lived HttpOnly cookies, strict CSP to kill eval, and production Direct Connections bans - or deploy their ATP/IPS/ZTNA to squash JS exfil and RCE. With AI backends handling regulated data, this "free model" facade is now a backdoor superhighway - patch yesterday.
Your privacy is worth protecting.
Get vp.net™ - the only VPN that isn't spying on you