Skip to main content

Open WebUI CVE-2026-70490

| EUVDEUVD-2026-52918 MEDIUM
Incorrect Authorization (CWE-863)
2026-08-04 https://github.com/open-webui/open-webui GHSA-5gpj-vj23-vhhv
6.3
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
Share

Severity by source

Vendor (https://github.com/open-webui/open-webui) PRIMARY
6.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
vuln.today AI
8.1 HIGH

Valid pending-role JWT required (PR:L); interactive shell and file access implies high C and I impact, not low; no availability impact is described.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/open-webui/open-webui).

CVSS VectorVendor: https://github.com/open-webui/open-webui

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

3
Patch available
Aug 04, 2026 - 22:02 EUVD
Source Code Evidence Fetched
Aug 04, 2026 - 21:04 vuln.today
Analysis Generated
Aug 04, 2026 - 21:04 vuln.today

DescriptionCVE.org

Summary

The terminal WebSocket route authenticates its own first-message JWT instead of going through the HTTP dependency chain, and never applies the role check that get_verified_user enforces on every HTTP terminal route. An account whose role is pending, meaning registered but not approved, or approved and later deactivated back to pending, can therefore open an interactive terminal session that the HTTP terminal endpoints would refuse. The missing control is the verified-user role gate, not the terminal access grants, which are evaluated correctly.

Preconditions

At least one terminal server must be configured, which is off by default, and its access grants must cover the account: either public read (principal_id: "*") or a group the account still belongs to. The attacker needs a valid, unexpired JWT for a pending account and the terminal server id. Both are obtainable by an account that registered while approvals are pending, or by one that held access and was deactivated, since deactivation sets the role to pending without revoking the token, which lasts four weeks by default. Deployments with no terminal server configured, or whose terminal grants are admin-only, are not affected.

Impact

A deployment loses the account-approval boundary for terminal access. An unapproved or deactivated account gets interactive shell access, file browsing and terminal-backed tooling in the terminal environment, for as long as its token remains valid. Because the HTTP terminal routes correctly reject the same account, the two planes disagree, so an administrator who deactivates a user sees access revoked over HTTP while the WebSocket keeps working. The terminal access grants themselves are not bypassed: an account with no grant is still refused, so this only widens access to terminals already shared broadly or with a group the account remains in.

Fix

Fixed in v0.11.0 by https://github.com/open-webui/open-webui/pull/27537. Token decoding, revocation checking, user lookup and the role check are consolidated into a single get_verified_user_by_token helper, and both the terminal WebSocket route and the Socket.IO handshake now go through it. The role set lives in one constant shared with the HTTP gate so the two cannot drift apart again. Upgrading fully resolves the issue; no configuration change is required.

Root cause

Affected component: backend/open_webui/routers/terminals.py, the _resolve_authenticated_connection helper backing the /{server_id}/api/terminals/{session_id} WebSocket route. Affected setup: every build from v0.8.8 onward, since the route was introduced there.

WebSocket handshakes cannot use FastAPI dependencies, so this route reimplemented authentication inline. The reimplementation reproduced the parts that are visible in the token, that it decodes and that the user row exists, and silently dropped the part that lives in the database row, the role check. Authorization then ran on two independent code paths with no shared definition of what an authenticated user is, and only one of them was updated when the role gate was introduced.

Credits

Reported by @rexpository.

AnalysisAI

Open WebUI's terminal WebSocket route omits the role-state verification gate that all HTTP terminal endpoints enforce, granting pending-role accounts - unapproved registrations or deactivated users - interactive shell access that the HTTP plane correctly denies. Affected pip package versions span v0.8.8 through v0.10.x; the flaw was introduced when the terminal WebSocket route was first added in v0.8.8 and persisted because FastAPI dependency injection cannot be applied to WebSocket handshakes, leading to a divergent reimplementation. No public exploit code has been identified at time of analysis, but exploitation requires only a valid pending-role JWT obtainable by design during registration or retained for up to four weeks after deactivation.

Technical ContextAI

The vulnerable component is backend/open_webui/routers/terminals.py, specifically the _resolve_authenticated_connection helper backing the /{server_id}/api/terminals/{session_id} WebSocket route (CPE: pkg:pip/open-webui, versions >= 0.8.8). Because FastAPI's dependency injection chain cannot attach to WebSocket handshakes, authentication was reimplemented inline. That reimplementation correctly decoded the JWT and verified the user row existed, but silently dropped the database-row role check - get_verified_user - that gates every HTTP terminal route. The result is CWE-863 (Incorrect Authorization): two independent authorization code paths with no shared definition of a verified user, where only the HTTP path was updated when the role gate was introduced. The terminal access grant evaluation (principal_id, group membership) was not affected and operates correctly on both planes.

RemediationAI

Upgrade to Open WebUI v0.11.0, which consolidates token decoding, revocation checking, user lookup, and role verification into a single shared get_verified_user_by_token helper used by both the terminal WebSocket route and the Socket.IO handshake; no configuration change is required alongside the upgrade. The fix is tracked in GitHub PR #27537 and the full advisory is at https://github.com/open-webui/open-webui/security/advisories/GHSA-5gpj-vj23-vhhv. For deployments unable to upgrade immediately, disabling the terminal server feature entirely (the default off state) eliminates exposure with no functional trade-off for users who do not rely on terminal access. Alternatively, restricting all terminal access grants to admin-only principals (removing public principal_id: "*" and group-based grants) removes the attack path without disabling the feature, at the cost of revoking non-admin terminal access. Relying on account deactivation alone is not a valid compensating control: deactivated users retain a valid JWT for up to four weeks, and this vulnerability means that token continues to grant terminal access until the upgrade is applied.

Share

CVE-2026-70490 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy