CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-59219

CVE-2026-59219: Session Revocation Bypass in Open WebUI Real-Time Endpoints

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 24, 2026·6 min read·61 visits

Executive Summary (TL;DR)

Open WebUI's Socket.IO and terminal WebSocket interfaces validated JWT signatures but bypassed stateful Redis revocation checks. This allowed logged-out or blacklisted user sessions to persist and access real-time endpoints and administrative terminal proxies.

CVE-2026-59219 identifies a session-revocation bypass vulnerability in Open WebUI versions 0.9.0 through 0.9.99. While standard HTTP REST endpoints enforce stateful JWT revocation using a Redis-backed blacklist, WebSocket and Socket.IO endpoints bypassed these checks. Consequently, a token revoked via sign-out or OIDC logout remains valid for establishing real-time communication channels and accessing server terminal proxies.

Vulnerability Overview

Open WebUI is an extensible, self-hosted AI interface designed to interact with various large language models. The platform exposes standard REST HTTP routes alongside asynchronous communication layers, such as Socket.IO and WebSocket terminal interfaces, to handle real-time collaboration, chat streams, and shell executions. The exposure of administrative shell interfaces and interactive workspaces makes real-time channels high-value targets.

This architecture exposes a session-management vulnerability classified as CWE-613 (Insufficient Session Expiration). While standard HTTP requests validate user sessions against a central stateful blacklist, real-time protocols fail to perform the same validation. This security gap leaves active connections open to exploitation by session reuse.

The core of the vulnerability lies in the transport-protocol discrepancy. Because the real-time endpoints do not verify token state, an attacker possessing a revoked JWT can connect and operate within the context of a logged-out user. The failure to invalidate these connections undermines the platform's security boundaries and neutralizes user-initiated signouts.

Root Cause Analysis

To understand the vulnerability, it is necessary to examine how session revocation works in Open WebUI. The application uses JSON Web Tokens (JWT) for authentication. When configured with a Redis backend, the platform supports stateful session revocation. A user sign-out or OIDC back-channel logout records a token identifier blacklist or a user-specific revocation timestamp directly into the Redis database.

Standard HTTP endpoints enforce these revocation entries during routing. Each request executes a dependency function named get_current_user inside backend/open_webui/utils/auth.py. This function decodes the token, extracts the unique token identifier (jti) and user ID, and checks Redis via the is_valid_token helper. If Redis contains a matching revocation record, the application terminates the HTTP connection and returns a 401 Unauthorized status.

In contrast, the asynchronous WebSocket and Socket.IO routers handle connections using separate handshakes. These pathways historically omitted the stateful verification check. Instead of calling is_valid_token, they only called decode_token, which performs offline cryptographic signature and expiration verification. Because the real-time routes never consulted the Redis database, the stateful revocation entries were ignored entirely, allowing revoked tokens to authenticate successfully.

Code Analysis

The architectural flaw stems from how dependencies were resolved in asynchronous layers. The original is_valid_token helper function depended on receiving an HTTP Request object to locate the application state and reference the Redis client. WebSocket and Socket.IO handshakes do not process standard HTTP Request wrappers, rendering the original validator incompatible with these communication contexts.

The vulnerable execution flow inside backend/open_webui/socket/main.py verified incoming connections strictly through decode_token:

# Vulnerable handshake logic
data = decode_token(auth['token'])
if data is not None and 'id' in data:
    user = await Users.get_user_by_id(data['id'])

To address this limitation, the patch refactored is_valid_token to accept an optional, direct redis client instance rather than requiring the HTTP request object. The updated validator can now run in non-HTTP routing contexts, retrieving the database connection from the ASGI scope structure:

# Patched authentication logic
scope = (environ or {}).get('asgi.scope') or {}
fastapi_app = scope.get('app')
redis = getattr(getattr(fastapi_app, 'state', None), 'redis', None) or REDIS
data = decode_token(auth['token'])
if data is not None and 'id' in data and await is_valid_token(data, redis):
    user = await Users.get_user_by_id(data['id'])

This design allows the Socket.IO handler to access the application's shared Redis instance via FastAPI application state, enabling consistent revocation checks across both HTTP and WebSocket interfaces.

Exploitation

Exploitation of this vulnerability requires an attacker to obtain a valid JWT belonging to the target user. An attacker may extract this token from browser local storage, proxy server logs, or compromised network infrastructure. The session remains usable even after the legitimate user logs out of the platform or resets their password.

After the target user initiates a sign-out, the server registers the revocation in Redis. However, the attacker can initiate a Socket.IO connection at /ws/socket.io or open a terminal WebSocket at /ws/terminals/{server_id}. Because the backend checks only the token signature and the hardcoded expiration claim, the handshake completes successfully, bypassing the security controls.

Once the connection is established, the attacker can execute real-time operations, join collaborative notes workspaces, and interact directly with system shell environments via the terminal proxy. The following diagram illustrates the different handling of HTTP and WebSocket authentication requests:

Impact Assessment

The security impact of CVE-2026-59219 is classified as high, with a CVSS v3.1 base score of 7.1. The attack vector is Network, attack complexity is Low, privileges required are Low, and user interaction is None. While the vulnerability requires the attacker to hold an authenticated token, the inability of the system to invalidate sessions significantly extends the post-revocation attack surface.

An unauthorized actor maintains full read access to real-time chat operations, model integrations, and workspace updates. If the platform is configured with terminal proxy services, the attacker can run commands directly on the host system, potentially resulting in complete compromise of the underlying container or host infrastructure.

The vulnerability is not currently cataloged in the CISA Known Exploited Vulnerabilities registry, and there is no evidence of active exploitation in the wild. The EPSS score is recorded at 0.00305, representing a low immediate statistical likelihood of exploitation, though systems exposed to untrusted networks face ongoing risk.

Remediation & Architectural Analysis

To remediate CVE-2026-59219, deploy Open WebUI version 0.10.0 or higher. This version implements consistent verification by injecting is_valid_token checks across standard handshakes and WebSocket routers. Update existing container deployments by pulling the updated images from the official container registry.

If immediate deployment of the patch is not possible, apply temporary mitigations to limit the exposure window. Reduce the token lifetime by lowering the value of the JWT_EXPIRY environment variable. This action shortens the maximum validity period of the token, ensuring that any hijacked sessions expire quickly after a user logout.

Additionally, turn off the terminal application service within the Open WebUI settings interface if host terminal proxy capability is not strictly required. Restricting administrative WebSocket connections reduces the severity of the exploit paths, ensuring that a compromised token cannot be used to perform host-level command execution.

Fix Analysis (1)

Technical Appendix

CVSS Score
7.1/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
EPSS Probability
0.30%
Top 77% most exploited

Affected Systems

Open WebUI

Affected Versions Detail

Product
Affected Versions
Fixed Version
Open WebUI
Open WebUI
>= 0.9.0, < 0.10.00.10.0
AttributeDetail
CWE IDCWE-613: Insufficient Session Expiration
Attack VectorNetwork
CVSS7.1 (High)
EPSS0.00305 (Percentile: 22.66%)
ImpactSession Bypass / Unauthorized Real-time and Terminal Access
Exploit StatusPoC Analyzed
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1563Subvert Active Sessions
Defense Evasion
CWE-613
Insufficient Session Expiration

The application does not invalidate the session database elements or state when sensitive events occur, allowing expired or revoked identifiers to persist.

References & Sources

  • [1]GitHub Security Advisory GHSA-855v-hq7w-jmjw
  • [2]Patch Commit 33b91bd
  • [3]NVD Vulnerability Details CVE-2026-59219

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•1 day ago•CVE-2026-107844
5.3

CVE-2026-107844: Path Traversal Vulnerability in Contao ImagesController

A path traversal vulnerability (CWE-22) in Contao CMS allows unauthenticated remote attackers to bypass directory boundary restrictions in ImagesController and access files within the project directory.

Amit Schendel
Amit Schendel
8 views•5 min read
•1 day ago•CVE-2026-107848
3.5

CVE-2026-107848: Cross-Site Request Forgery (CSRF) in Contao Backend Actions via GET Requests

Contao Open Source CMS versions 4.0.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 contain a Cross-Site Request Forgery (CSRF) vulnerability in backend parameter handling. The `RequestTokenListener` component validates anti-CSRF tokens solely for HTTP POST requests, while GET-based declarative guards run only when an `act` parameter is present in the query string. Consequently, custom backend actions dispatched via alternative parameters such as `key=` can execute without CSRF token verification when triggered by an authenticated user.

Amit Schendel
Amit Schendel
7 views•5 min read
•1 day ago•CVE-2026-107843
5.3

CVE-2026-107843: Unthrottled Activation Email Resend and Account Enumeration in Contao CMS

Contao CMS versions 4.1.0 through 5.3.49 and 5.4.0-RC1 through 5.7.11 fail to validate form submission tokens and enforce rate limiting when processing activation email resend requests via HTTP POST, enabling resource exhaustion and account state enumeration.

Amit Schendel
Amit Schendel
8 views•4 min read
•1 day ago•CVE-2026-107842
5.3

CVE-2026-107842: Information Disclosure via Stale Indexing in Contao Search Module

An information disclosure vulnerability in Contao CMS allows unauthenticated site visitors to view protected page titles, URLs, and text excerpts through search queries when protected page indexing is disabled after previously being enabled.

Amit Schendel
Amit Schendel
10 views•4 min read
•1 day ago•GHSA-G38J-7V97-X298
6.5

GHSA-G38J-7V97-X298: Missing Authorization Check in Vikunja CalDAV Task Relation Creation

In Vikunja prior to version 2.6.0, relation creation via the CalDAV endpoint fails to invoke the TaskRelation.CanCreate authorization check. This missing access control allows an authenticated user to establish unauthorized relationships and perform write operations against any task, provided its unique identifier (UID) is known.

Alon Barad
Alon Barad
12 views•5 min read
•1 day ago•GHSA-3HC7-R24J-RPWC
6.8

GHSA-3hc7-r24j-rpwc: Cross-Project Task Disclosure via Subtask Expansion in Vikunja

A cross-project information disclosure vulnerability in Vikunja allows authenticated users with read access to one project to view private task details from unauthorized projects via subtask expansion parameters.

Alon Barad
Alon Barad
9 views•5 min read