NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-44564: Read-Only Open WebUI Users Can Modify Collaborative Documents via Socket.IO

mediumCVSS 3.1 5.4GHSA-vrfh-rj4q-rmhr

Open WebUI up to 0.8.12 lets a user with read-only access to a shared note change it over Socket.IO. The ydoc:document:update handler checks only room membership, and a second handler persisted changes after a read check. Edits show up live for all collaborators and can be saved. Fixed in 0.9.0.

Published May 8, 2026 · Updated Jun 9, 2026 · Analysis Oct 28, 2026

What an attacker can do

Collaborative notes use Socket.IO and a Yjs document. In backend/open_webui/socket/main.py, ydoc:document:join admits a user who has read permission to the document room. The ydoc:document:update handler then checks only that the sender is in that room, not that they can write. It applies the update to the in-memory Yjs state and broadcasts it to the other collaborators. The advisory also says document_save_handler checked permission='read' while saving with Notes.update_note_by_id, so a read-only collaborator could persist changes directly. Both handlers are fixed in 0.9.0, and the advisory merged them under one CVE.

The attacker needs an account with read access to a shared note and a Socket.IO client. The frontend's read-only mode does not matter, because they emit the events themselves. They can inject, change or delete content, and all collaborators see it in real time. The in-memory path persists only when a write-access user saves, which can happen by autosave. The save handler flaw lets the attacker persist directly.

The result is tampered shared documents and a broken read/write model for notes. Teams that circulate runbooks, policies or prompts as shared notes could end up with altered content that looks like the owner's. Nothing is disclosed beyond what read access already gave.

Who is affected

Affected: open-webui <= 0.8.12 (pip). The report says current main and likely all versions with collaborative note editing. You are exposed if users share notes with others at read-only permission.

Check the version:

pip show open-webui

For Docker, check the image tag.

open-webui

Ecosystem
PyPI
Affected
<= 0.8.12
Fixed in
0.9.0
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.9.0 or later:

pip install --upgrade open-webui

The advisory says both affected handlers, ydoc:document:update and document_save_handler, are fixed in 0.9.0. It lists no workaround. Until you upgrade, avoid sharing important notes at read-only level with users you do not trust, and review the content of notes that were shared that way.

How to tell if you were hit

Compare the current contents of shared notes with their expected state, and with backups or earlier exports. Look for edits that the owner did not make, particularly on notes shared with read-only users.

In Socket.IO or reverse-proxy logs, look for ydoc:document:update events from sessions of users whose grant on that note is read. Autosave from the owner can write attacker text to the database, so also check note update times that match another user's session.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Read-Only Users Can Modify Collaborative Documents via Socket.IO

Affected Component

Socket.IO collaborative document editing handler:

  • backend/open_webui/socket/main.py (lines 667-721, ydoc:document:update handler)

Affected Versions

Current main branch and likely all versions with collaborative note editing.

Description

The ydoc:document:update Socket.IO event handler checks whether the sender is a member of the document's Socket.IO room (line 678) but does not verify that the sender has write permission. Users with read-only access join the document room via ydoc:document:join, which only requires read permission (line 520). Once in the room, the user can emit ydoc:document:update events that modify the in-memory Yjs document state and are broadcast to all other collaborators in real time.

The document_save_handler (line 600) correctly checks write permission before persisting to the database, so the attacker cannot directly save changes. However, the tampered content is visible to all collaborators, and if any user with write access saves the document, the injected content is persisted.

# ydoc:document:update handler (line 667) — only checks room membership, not write permission
async def on_document_update(sid, data):
    document_id = normalize_document_id(data.get('document_id', ''))
    # ...
    room = f'doc_{document_id}'
    if room not in sio.rooms(sid):  # Room membership check only
        return
    # Applies update to Yjs state and broadcasts to all users
    YDOC_MANAGER.apply_update(document_id, update)
    await sio.emit('ydoc:document:update', {...}, room=room, skip_sid=sid)

Compare with ydoc:document:join (line 520) which checks permission:

# Only checks READ permission — so read-only users join the room
if not has_access(user_id, type, id, 'read', db=db):
    return

CVSS 3.1 Breakdown

| Metric | Value | Rationale |
| Attack Vector | Network (N) | Exploited remotely via Socket.IO events |
| Attack Complexity | Low (L) | No special conditions; attacker emits a standard Socket.IO event |
| Privileges Required | Low (L) | Requires a valid user account with read access to the shared note |
| User Interaction | None (N) | Modifications appear in real time without victim action; however, persistence requires a write-access user to save |
| Scope | Unchanged (U) | Impact is within the collaborative document context |
| Confidentiality | None (N) | No data disclosure beyond what read access already provides |
| Integrity | Low (L) | In-memory document state is modified and broadcast; persistence is indirect (requires another user to save) |
| Availability | Low (L) | Collaborative editing session can be disrupted with invalid content |

Attack Scenario

  1. User A creates a note and shares it with User B with read permission.
  2. User B opens the note, which triggers ydoc:document:join — the server checks read permission and adds User B to the document room.
  3. User B emits ydoc:document:update with a crafted Yjs update payload via the Socket.IO connection (bypassing any frontend read-only enforcement).
  4. The server applies the update to the Yjs document state and broadcasts it to all collaborators.
  5. User A sees the injected content appear in their editor in real time.
  6. If User A saves the document (intentionally or via autosave), the tampered content is persisted to the database — User A's save passes the write permission check since User A is the owner.

Impact

  • Read-only users can inject, modify, or delete content in collaborative documents
  • Modifications are broadcast in real time to all collaborators, causing confusion or disruption
  • If a write-access user saves (including autosave), the tampered content is permanently persisted
  • Undermines the read/write permission model for collaborative editing

Preconditions

  • Attacker must have a valid user account with read access to a shared note
  • The note must be open for collaborative editing (at least one other user viewing it, or the attacker can wait for a write-access user to open and save)

Consolidation

This advisory covers read-only users modifying collaborative notes over Socket.IO. Two handlers were affected, both fixed in v0.9.0:

  • ydoc:document:update — checked only room membership, not write permission, so a read-only collaborator could inject in-memory document updates broadcast to other collaborators (persistence indirect). @Classic298.
  • document_save_handler — checked permission='read' while persisting via Notes.update_note_by_id, so a read-only collaborator could persist note changes directly. Reported by @hacnho

One CVE for the consolidated advisory.

Credited to Classic298.

Questions

Can a read-only user save changes straight to the database?

Yes in affected versions, through document_save_handler, which checked read permission while saving. The other handler only changed the shared in-memory document unless a writer saved.

Does the frontend's read-only mode stop this?

No. The attacker emits the Socket.IO events directly, so any frontend enforcement is bypassed.

What data can the attacker read through this?

Nothing more than read access already gives. The impact is to integrity and, mildly, availability of the editing session.

Is it exploited in the wild?

No source reports exploitation. It is not in CISA's KEV catalog, and its EPSS score is low (0.0022).

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries