Severity by source
AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Network-reachable identity spoof needing a low-privileged account (PR:L) and non-trivial injection crafting (AC:H); crossing into another user's identity is a scope change (S:C) with full C/I/A impact on the victim's terminal session.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. Prior to 0.10.0, backend/open_webui/routers/terminals.py built the ws_terminal upstream URL from an unencoded session_id and appended user_id as a query parameter, allowing query injection to make the terminal backend resolve another user identity; the HTTP proxy path also forwarded X-User-Id as an integrity-unbound identity claim. This issue is fixed in version 0.10.0.
AnalysisAI
Identity spoofing in Open WebUI before 0.10.0 lets an authenticated low-privileged user impersonate another account by injecting query parameters into the terminal WebSocket URL. Because backend/open_webui/routers/terminals.py built the ws_terminal upstream URL from an unencoded session_id and appended user_id as a query parameter - while the HTTP proxy path trusted an integrity-unbound X-User-Id header - an attacker can make the terminal backend resolve a different user identity, gaining that victim's terminal session context. No public exploit has been identified at time of analysis, but the fix is confirmed in v0.10.0 and the flaw is scored CVSS 8.0.
Technical ContextAI
Open WebUI is a self-hosted, extensible AI/LLM front-end (Python FastAPI backend, Svelte frontend) that includes an interactive terminal feature. The vulnerability lives in the terminal proxy layer: the backend constructs the upstream WebSocket URL for ws_terminal by string-concatenating a session_id that is never URL-encoded, then appends the caller's user_id as a query-string parameter. An attacker-controlled session_id containing URL delimiters (e.g. '&' or an additional 'user_id=' pair) therefore performs classic query-parameter injection, causing the backend to parse an attacker-chosen user_id and bind the terminal to another identity. Compounding this, the parallel HTTP proxy path forwards an X-User-Id header treated as a trusted identity claim without any cryptographic or session binding. This is a CWE-287 (Improper Authentication) issue - identity is derived from client-supplied, unauthenticated request data rather than a verified server-side session.
RemediationAI
Vendor-released patch: upgrade to Open WebUI 0.10.0 or later, which URL-encodes session identifiers and stops trusting the client-supplied X-User-Id claim (see advisory https://github.com/open-webui/open-webui/security/advisories/GHSA-j657-m4c4-24jq and release https://github.com/open-webui/open-webui/releases/tag/v0.10.0). If you cannot upgrade immediately, disable or restrict the terminal feature so untrusted or low-privileged users cannot invoke ws_terminal, and place the instance behind a reverse proxy that strips or overrides any inbound X-User-Id header rather than forwarding it upstream - the trade-offs are loss of terminal functionality for affected users and added proxy configuration overhead. For multi-tenant instances, limit the platform to trusted users until patched, since the identity-spoofing path only matters where multiple distinct user identities exist. The fix corresponds to commit 5f3a628 (PR #26042).
More in Open Webui
View allA vulnerability in open-webui/open-webui version 0.3.8 allows an attacker with a user-level account to perform a session
An XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
A vulnerability in open-webui/open-webui versions <= 0.3.8 allows remote code execution by non-admin users via Cross-Sit
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, a St
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.6.37, a Se
A stored cross-site scripting (XSS) vulnerability exists in open-webui/open-webui version 0.3.8. Rated high severity (CV
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
In open-webui version 0.3.8, the endpoint `/models/upload` is vulnerable to arbitrary file write due to improper handlin
The `/openai/models` endpoint in open-webui/open-webui version 0.3.8 is vulnerable to Server-Side Request Forgery (SSRF)
In version 0.3.32 of open-webui/open-webui, the absence of authentication mechanisms allows any unauthenticated attacker
Same weakness CWE-287 – Improper Authentication
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-42636
GHSA-j657-m4c4-24jq