Media

Open WebUI: Unapproved accounts can open terminal sessions via a WebSocket auth path missing the role check

  • Publicada: 04.08.2026
  • Actualizado: 11.10.2026 14:19

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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) open-webui >= 0.8.8, < 0.11.0 0.11.0

Referencias

Puntuación CVSS 6.3/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Debilidad (CWE)
CWE-863
Plataforma
Python (PyPI)
Paquete
open-webui
Publicada
04.08.2026
Actualizado
11.10.2026 14:19

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2026-3642 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-5gpj-vj23-vhhv - CC BY 4.0

Historial de vulnerabilidades: open-webui

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (161) en el archivo
Entradas en total
161
Primera → última
08.2024 09.2026
Sin corrección
11
Explotada en ataques
0

Distribución por gravedad

  • Crítica 1
  • Alta 77
  • Media 75
  • Baja 8

Divulgaciones por año

  1. 2024: 3
  2. 2025: 21
  3. 2026: 137
Gravedad:
  1. Open WebUI: Unapproved accounts can open terminal sessions via a WebSocket auth path missing the role check esta entrada
    Media · 6.3 CVE-2026-70490 >= 0.8.8, < 0.11.0 0.11.0
  2. Alta · 7.7 CVE-2026-59221 >= 0.9.6, < 0.10.0 0.10.0
  3. Alta · 7.3 CVE-2026-59214 < 0.10.0 0.10.0
  4. Alta · 8.7 CVE-2026-54011 < 0.9.6 0.9.6
  5. Alta · 7.1 CVE-2026-45349 < 0.9.0 0.9.0
  6. Alta · 7.7 CVE-2026-45303 < 0.6.5 0.6.5
  7. Alta · 7.1 CVE-2026-44569 < 0.6.19 0.6.19
  8. Alta · 8.1 CVE-2026-44565 < 0.6.10 0.6.10
  9. Alta · 7.3 CVE-2026-44566 < 0.1.124 0.1.124
  10. Alta · 7.3 CVE-2026-44567 < 0.1.124 0.1.124
  11. Alta · 7.3 CVE-2026-44549 < 0.8.0 0.8.0
  12. Crítica · 9.1 CVE-2026-44551 < 0.9.0 0.9.0
  13. Alta · 7.3 CVE-2026-44721 < 0.9.0 0.9.0
  14. Alta · 7.7 CVE-2026-34222 < 0.8.11 0.8.11
  15. Alta · 7.5 ghsa-5ccf-884p-4jjq <= 0.3.21 sin corrección
  16. Alta · 8.4 CVE-2024-7990 <= 0.3.8 sin corrección
  17. Alta · 8.0 CVE-2024-7806 < 0.3.33 0.3.33
  18. Alta · 7.6 CVE-2024-7053 <= 0.3.8 sin corrección
  19. Alta · 8.1 CVE-2024-7043 < 0.3.16 0.3.16
  20. Alta · 7.5 CVE-2024-7036 <= 0.3.8 sin corrección
  21. Alta · 7.5 ghsa-w466-2wfc-8g58 <= 0.3.32 sin corrección
  22. Alta · 7.5 CVE-2024-12534 <= 0.3.32 sin corrección
  23. Alta · 7.5 CVE-2024-12537 <= 0.3.32 sin corrección

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.