Skip to main content

Open WebUI EUVDEUVD-2026-30615

| CVE-2026-44553 HIGH
Session Fixation (CWE-384)
2026-05-08 https://github.com/open-webui/open-webui GHSA-45m8-cpm2-3v65
8.1
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain legitimate admin role
  2. Delivery
    Establish Socket.IO connection
  3. Exploit
    SESSION_POOL caches admin role
  4. Install
    Admin demotes attacker
  5. C2
    Heartbeat events preserve stale session
  6. Execute
    Emit ydoc:document:join for victim note
  7. Impact
    Bypass authorization via cached admin role
  8. Step 8
    Exfiltrate and modify note content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session fixation prevention
Exploitation Conditions

Attacker must have been assigned admin role in Open WebUI and established an active Socket.IO WebSocket connection while holding that role. The connection must remain open (browser tab active or backgrounded with automatic reconnection enabled) across the role demotion or account deletion event. Specific deployment requirements: Open WebUI version ≤0.8.12 with collaborative document editing feature enabled (Yjs handlers present). The vulnerability is exploitable against default configurations with no special network positioning required (AV:N) - attacker connects from any network location with HTTPS access to the application. Authentication is initially required to obtain admin role and valid JWT token (PR:L), but the core privilege escalation occurs post-demotion when authentication should be insufficient. No user interaction needed from victims (UI:N). Exploitation is LIMITED by: timing window (attacker must maintain connection during the exact moment of demotion), organizational policy (requires legitimate initial admin access, not achievable by external attackers), and scope (impacts only collaborative note access, not full application compromise). HTTP endpoints correctly enforce updated permissions, so exploitation is bounded to Socket.IO-based document handlers. Automated heartbeat mechanisms in Socket.IO client libraries make maintaining the connection trivial, requiring no active attacker intervention beyond keeping the browser process alive.

Impact

Real-world risk is HIGH with narrow scope. CVSS 8.1 correctly reflects the technical severity: network-accessible (AV:N), low attack complexity (AC:L), requires low privileges initially (PR:L - must have been admin), no user interaction (UI:N), high confidentiality and integrity impact (C:H/I:H) with no availability impact (A:N). The attack requires the target to maintain an active WebSocket connection across the demotion event, which is realistic in long-running browser sessions with automatic reconnection. EPSS data not provided, but exploitation likelihood is constrained by three factors: (1) attacker must have legitimately held admin role at some point, (2) requires precise timing - connection must span the demotion event, (3) scope limited to collaborative document features, not the entire application. No KEV listing indicates this has not been observed in widespread exploitation. SSVC factors: Exploitation status is publicly available exploit code exists (GitHub advisory provides detailed code paths and reproduction steps), automatable is NO (requires human timing to maintain connection during demotion), technical impact is PARTIAL (confidentiality and integrity of notes only, not full system compromise). The vulnerability's impact is amplified in environments with frequent role changes or account cleanups where administrators expect immediate privilege revocation. Risk is elevated because administrative demotion creates false confidence that access has been terminated when real-time channels silently persist. Compensating factor: attack leaves audit trail in Socket.IO connection logs and document access patterns.

Exploit ScenarioDerived

Attacker Alice is granted temporary admin access to Open WebUI and opens the web application in her browser, establishing a Socket.IO connection that caches her admin role in SESSION_POOL. When her admin privileges are revoked by a superuser, her HTTP API requests immediately reflect the demotion, but her WebSocket connection persists with cached admin credentials. Alice's browser automatically sends heartbeat events every few seconds, refreshing her session timestamp without re-validating her role. She now emits a ydoc:document:join event targeting a sensitive note owned by another user - the server's authorization check reads her stale admin role from SESSION_POOL, bypasses ownership validation, and grants full read/write access to the collaborative document. Alice can exfiltrate confidential content and inject malicious data via ydoc:document:update events, with all changes persisted to the database under the legitimate note owner's ID. The attack continues indefinitely until Alice closes her browser or the server restarts.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Privilege escalation in Open WebUI ≤0.8.12 allows demoted administrators to retain elevated access to collaborative documents via stale Socket.IO sessions. When an admin user is demoted or deleted, their active WebSocket connection preserves cached admin privileges indefinitely through heartbeat mechanisms, enabling unauthorized read/write access to any user's notes. Official patch released in version 0.9.0 addresses the session invalidation gap. CVSS 8.1 (High) with network attack vector and low complexity; no public exploit identified at time of analysis.

RemediationAI

Upgrade to Open WebUI version 0.9.0 or later, which implements proper session invalidation on role changes and user deletion. Install via pip install --upgrade open-webui==0.9.0 or update container images to ghcr.io/open-webui/open-webui:0.9.0 or later. Refer to the fix details in GitHub Advisory GHSA-45m8-cpm2-3v65 at https://github.com/open-webui/open-webui/security/advisories/GHSA-45m8-cpm2-3v65. If immediate patching is not feasible, implement these compensating controls with associated trade-offs: (1) Restart the Open WebUI application server immediately after any admin role changes or user deletions to forcibly disconnect all active Socket.IO sessions - this causes service interruption and disconnects all users, not just the affected account, but guarantees session cache invalidation; (2) Disable the collaborative document editing feature entirely by blocking Socket.IO endpoints at the reverse proxy layer (block /socket.io/* paths) - this eliminates real-time collaboration functionality but preserves core application features accessed via HTTP; (3) Implement connection time limits at the load balancer to force WebSocket reconnection every 15-30 minutes, which will refresh SESSION_POOL entries - this may disrupt active editing sessions and requires infrastructure changes. After applying the patch, audit application logs for Socket.IO sessions that remained active across role modification timestamps to identify potential exploitation attempts. No configuration changes are required post-upgrade as the fix automatically invalidates sessions on privilege changes.

Affected VersionsENISA

open-webui < 0.9.0

Affected Packages

pypi open-webui fix: 0.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI is a Python-based web application (pip package: open-webui) that implements real-time collaborative document editing using Socket.IO for WebSocket communication and Yjs for conflict-free replicated data structures. The vulnerability stems from CWE-384 (Session Fixation) - specifically an improper session lifecycle management pattern where authorization attributes are cached in an in-memory SESSION_POOL dictionary at connection time but never invalidated when database state changes. The Socket.IO connect handler at backend/open_webui/socket/main.py:330-351 authenticates users via JWT and snapshots their role attribute from the database into SESSION_POOL[sid]. The heartbeat handler (lines 393-398) extends session liveness by updating only the last_seen_at timestamp while preserving the stale role value. Authorization checks in collaborative document handlers (ydoc:document:join at line 538, document_save_handler at line 611) evaluate user.get('role') against the cached SESSION_POOL entry rather than re-querying the database. Critically, administrative operations in backend/open_webui/routers/users.py that modify user roles (lines 557-633) or delete users (line 641) update only the persistent database layer without iterating SESSION_POOL to invalidate affected sessions or emit disconnect events. This creates a temporal privilege window where HTTP endpoints correctly reflect demoted permissions (via get_current_user database queries) while WebSocket handlers continue honoring elevated cached roles. The affected CPE is pkg:pip/open-webui through version 0.8.12.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

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

Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.

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

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

DescriptionCVE.org

Stale Admin Role in Socket.IO Session Pool Enables Post-Demotion Cross-User Note Access

Affected Component

Socket.IO session state and role-check callsites:

  • backend/open_webui/socket/main.py (lines 330-351, connect handler - role snapshotted into SESSION_POOL)
  • backend/open_webui/socket/main.py (lines 393-398, heartbeat handler - does not refresh role)
  • backend/open_webui/socket/main.py (line 538, ydoc:document:join - uses cached role for admin check)
  • backend/open_webui/socket/main.py (line 611, document_save_handler - uses cached role for admin check)
  • backend/open_webui/routers/users.py (lines 557-633, role update - does not invalidate SESSION_POOL)
  • backend/open_webui/routers/users.py (line 641, user delete - does not invalidate SESSION_POOL)

Affected Versions

Current main branch (commit 6fdd19bf1) and likely all versions with the collaborative document (Yjs) Socket.IO handlers.

Description

When a user connects via Socket.IO, the connect handler authenticates them via JWT and stores their user record (including role) in the in-memory SESSION_POOL dictionary keyed by session ID. The heartbeat handler keeps the session alive indefinitely but only refreshes the last_seen_at timestamp - never the role.

Role checks in the Yjs collaborative document handlers (ydoc:document:join, document_save_handler) consult the cached SESSION_POOL role rather than the database. Meanwhile, administrative role changes and user deletions do not iterate SESSION_POOL to disconnect affected sessions. As a result, a user whose admin role has been revoked retains admin privileges within their existing Socket.IO session for as long as they keep the connection alive (via automatic heartbeats).

HTTP endpoints are not affected - get_current_user at [utils/auth.py](backend/open_webui/utils/auth.py) refetches the user record from the database on every request. The gap is exclusive to the Socket.IO session cache.

python
# socket/main.py:330-351 - role snapshotted at connect time
async def connect(sid, environ, auth):
    user = None
    if auth and 'token' in auth:
        data = decode_token(auth['token'])
        if data is not None and 'id' in data:
            user = Users.get_user_by_id(data['id'])
        if user:
            SESSION_POOL[sid] = {
                'id': user.id,
                'role': user.role,
# ← snapshotted, never refreshed
                ...
            }
# socket/main.py:393-398 - heartbeat refreshes last_seen_at only
async def heartbeat(sid, data):
    user = SESSION_POOL.get(sid)
    if user:
        SESSION_POOL[sid] = {**user, 'last_seen_at': int(time.time())}
# role is carried forward unchanged
# socket/main.py:538 - admin check against cached role
if user.get('role') != 'admin' and not has_access(user_id, 'note', note_id, 'read', db=db):
    return

Attack Scenario

  1. User B is an admin and has an active browser session with a live Socket.IO connection. SESSION_POOL[sid] records role='admin'.
  2. Admin A demotes User B to a regular user via POST /api/v1/users/{B_id}/update. The DB user.role becomes 'user'.
  3. No Socket.IO disconnect, no SESSION_POOL update, no token revocation event is triggered by the role change.
  4. User B's client continues sending heartbeat events every few seconds; these are accepted and only refresh last_seen_at.
  5. User B emits ydoc:document:join with document_id = 'note:<victim_note_id>' for any note they do not own.
  6. The handler at line 538 evaluates user.get('role') != 'admin' - returns False because SESSION_POOL still holds the stale admin role. Access check is bypassed, User B joins the document room, receives full document state and live updates.
  7. User B emits ydoc:document:update for the same note. The handler at line 611 performs the same cached-admin check, bypasses authorization, and persists attacker-controlled content to the victim's note via Notes.update_note_by_id.

The same bypass occurs if the user is deleted entirely (delete_user_by_id) - the deleted user retains admin privileges on their live socket until disconnection.

Impact

  • Read access to any user's notes after admin privileges have been revoked
  • Write access (content injection, overwrite) to any user's notes under the same conditions
  • The stale privilege is bounded only by the attacker's willingness to keep the Socket.IO connection alive; heartbeats extend the session indefinitely
  • Official admin demotion or user deletion gives a false sense of security - HTTP access is correctly revoked, but real-time collaborative access silently continues

Preconditions

  • Attacker must have an active Socket.IO connection established while they held admin role
  • Attacker must retain the Socket.IO session after demotion/deletion (trivial - just don't close the browser)

Executive ViewAI

Why It Matters

Open WebUI versions 0.8.12 and earlier contain a privilege escalation vulnerability affecting administrative access controls that allows demoted or removed administrators to maintain unauthorized access to collaborative documents through persistent WebSocket sessions. Organizations using Open WebUI risk unauthorized data exposure and modification of sensitive shared documents by former administrators, making immediate version upgrades critical for access governance integrity.

Business Impact: High
Compensating Controls

Vendor-released patch: Open WebUI version 0.9.0. Until patching is complete, manually restart Open WebUI application services every 24 hours to force WebSocket session termination; implement network-level restrictions limiting WebSocket connections to trusted IP ranges; enable comprehensive audit logging of all document access and modifications to detect unauthorized activity by formerly elevated accounts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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