Open WebUI: Cross-user code-interpreter and tool execution via unvalidated Socket.IO event-caller session_id
CVE-2026-59216 · GHSA-74h3-cxq7-vc5q · published 2026-07-24
- Severity
- High
- CVSS score
- 7.7
- Chance of exploitation (EPSS)
- 0.45%
- Fixed in
- 0.10.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
Any victim: arbitrary code-interpreter Python and tool execution in the victim's authenticated session — the attacker acts with the victim's identity and origin (full session/account compromise). Admin victim: the hijacked admin context reaches POST /api/v1/functions/create, whose source is exec()'d server-side → remote code execution as the server process (root in the default container). The Functions API is intended administrator code-execution; the vulnerability here is the cross-user delivery that lets an attacker drive another user's session — including an admin's — into it. The primitive is a full session compromise even against non-admin victims.
Upgrade open-webui to 0.10.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
geteventcall must verify the target session belongs to the requesting user before delivering, not merely that it is connected: user_id in the request metadata is server-derived from the authenticated user, so it is trustworthy. Restricting ydoc:document:join so it does not disclose other participants' socket ids is recommended as defence-in-depth.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| open-webui | PyPI | < 0.10.0 | 0.10.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalOpen WebUI has an LDAP Empty Password Authentication Bypassopen-webui
- HighTerminal users can manage Terminals policies and other users' terminals via the terminal proxyopen-webui
- HighAny authenticated user can steal another user's session token via script embedded in a DOCX previewopen-webui
- HighViewer session token theft via a script link in a shared chat's citationopen-webui
- HighAny website can steal a signed-in user's session token via the community stats message handleropen-webui
- HighOpen WebUI: Non-admin users can delete admin-owned external knowledge connections via knowledge base deletionopen-webui
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.