Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
CVE-2026-87016 · GHSA-wpmr-8h3q-fwj7 · published 2026-09-10
- Severity
- High
- CVSS score
- 8.1
- Chance of exploitation (EPSS)
- 0.60%
- Fixed in
- 0.11.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
A sign-in can be bound to an account other than the one the identity provider authenticated. Where the operator has made the subject claim user-settable, an attacker who registers at that provider can choose a value that matches an existing account and receive a session for it, including an administrator account, which is a full compromise of the instance. Where the subject claim is provider-assigned, the deliberate attack is not available, and what remains is a correctness failure in which an ordinary subject value containing an underscore can resolve to the wrong account and hand one user another user's session non-deterministically.
Upgrade open-webui to 0.11.1 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.
Fixed in 0.11.1 by https://github.com/open-webui/open-webui/pull/28624. The two identity lookups now compare the nested JSON value directly through SQLAlchemy's JSON subscript operator, which emits an exact match on both supported databases, instead of going through the column-level contains() operator that degraded to a substring comparison on SQLite. The hand-written per-dialect branching is removed, since the operator already handles both backends. Upgrading fully resolves it and no configuration change is required. Existing stored identities are unaffected, as the stored format does not change.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| open-webui | PyPI | >= 0.6.41, < 0.11.1 | 0.11.1 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- 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.