Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Lifecycle Timeline
3DescriptionGitHub Advisory
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:updatehandler)
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):
returnCVSS 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
- User A creates a note and shares it with User B with read permission.
- User B opens the note, which triggers
ydoc:document:join- the server checks read permission and adds User B to the document room. - User B emits
ydoc:document:updatewith a crafted Yjs update payload via the Socket.IO connection (bypassing any frontend read-only enforcement). - The server applies the update to the Yjs document state and broadcasts it to all collaborators.
- User A sees the injected content appear in their editor in real time.
- 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)
AnalysisAI
Read-only users in Open WebUI can modify collaborative documents via Socket.IO by emitting crafted ydoc:document:update events that bypass write permission checks, allowing them to inject, modify, or delete content visible to all collaborators in real time. While direct database persistence requires write access, tampered content becomes permanent if any write-enabled user saves the document, undermining the read/write permission model for collaborative editing.
Technical ContextAI
Open WebUI's collaborative document editing feature uses Socket.IO for real-time synchronization and Yjs (a CRDT library) for conflict-free collaborative state management. The vulnerability exists in the ydoc:document:update event handler in backend/open_webui/socket/main.py (lines 667-721), which validates only Socket.IO room membership but omits permission verification. The ydoc:document:join handler correctly checks read permission before adding users to the document room (line 520), but the on_document_update handler applies Yjs state updates without re-checking write permissions. This is an authorization bypass (CWE-863: Incorrect Authorization) where room membership is conflated with write permission. The document_save_handler (line 600) does enforce write permission for database persistence, creating an asymmetry: in-memory CRDT state can be corrupted by read-only users, but only write-enabled users can commit changes to persistent storage.
RemediationAI
Upgrade to Open WebUI version 0.9.0 or later, which adds write permission verification to the ydoc:document:update event handler. If immediate upgrade is not feasible, implement a compensating control by restricting read-only user access to collaborative editing sessions: disable Socket.IO room membership for users without write permission (modify the ydoc:document:join handler to require write permission instead of read), though this effectively removes read-only collaboration until the patch is applied. Alternatively, enforce autosave to be triggered only by write-enabled users, preventing read-only user modifications from being persisted indirectly. See GitHub Advisory GHSA-vrfh-rj4q-rmhr for patch details and confirmation.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30616
GHSA-vrfh-rj4q-rmhr