CVE-2026-59715: Open WebUI: Unauthenticated WebSocket Access to Collaborative Document Handlers (ydoc:awareness:update, ydoc:document:leave)

Published Jul 9, 2026
·
Updated

Summary

The Socket.IO server is configured with alwaysconnect=True (lines 78, 91 in backend/openwebui/socket/main.py) and the connect handler (line 329) never rejects unauthenticated connections. Two Ydoc event handlers have zero authentication checks, allowing unauthenticated clients to interact with collaborative document sessions.

Vulnerable Code

ydoc:awareness:update (line 741) — No auth check at all python @sio.on('ydoc:awareness:update') async def yjsawarenessupdate(sid, data): documentid = data['documentid'] userid = data.get('userid', sid) update = data['update'] # No SESSIONPOOL check, no room membership check await sio.emit( 'ydoc:awareness:update', {'documentid': documentid, 'userid': userid, 'update': update}, room=f'doc{documentid}', skipsid=sid, )

ydoc:document:leave (line 711) — No auth check at all python @sio.on('ydoc:document:leave') async def yjsdocumentleave(sid, data): documentid = data['documentid'] userid = data.get('userid', sid) # No auth check await YDOCMANAGER.removeuser(documentid=documentid, userid=sid) await sio.emit('ydoc:user:left', {'documentid': documentid, 'userid': userid}, room=f'doc{documentid}')

Root Cause: alwaysconnect=True (line 78) python sio = socketio.AsyncServer( alwaysconnect=True, # Never rejects connections ... )

The connect handler (line 329) adds authenticated users to SESSIONPOOL but never returns False or raises an exception for unauthenticated connections.

Exploitation

1. An unauthenticated attacker connects via Socket.IO (no token needed) 2. The attacker emits ydoc:awareness:update with: - documentid: a known/guessed note UUID (format: note:{uuid}) - userid: spoofed to impersonate any user - update: arbitrary awareness data (fake cursor positions, selections) 3. The fake awareness data is broadcast to all legitimate users in the document room 4. The attacker can also emit ydoc:document:leave with spoofed userid to broadcast fake ydoc:user:left events

Impact

- UI disruption: Fake cursor positions and user presence in collaborative editing sessions - User impersonation: Attacker can spoof any userid in awareness updates - Resource exhaustion: Unlimited unauthenticated WebSocket connections maintained by the server

Note: Other Ydoc handlers (ydoc:document:join, ydoc:document:update, ydoc:document:state) correctly check SESSIONPOOL membership.

Suggested Fix

1. Set alwaysconnect=False or reject unauthenticated connections in the connect handler 2. Add SESSIONPOOL checks to ydoc:awareness:update and ydoc:document:leave 3. Add room membership verification before broadcasting to document rooms

---

AI Disclosure (per Rule 11): AI (Claude) was used to assist with source code review, identifying potential vulnerability patterns, and drafting this report. The researcher directed the analysis, selected focus areas, and independently verified all findings against a running v0.8.12 Docker instance using real HTTP requests with two test accounts. The PoCs included are reproducible and were confirmed live before submission.

Other sources

Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.6.16 before 0.10.0, the Socket.IO server is configured with alwaysconnect=True. The ydoc:awareness:update and ydoc:document:leave Socket.IO handlers accepted collaborative-document events without requiring an authenticated user, allowing unauthorized manipulation of document collaboration state. This issue is fixed in version 0.10.0.

NVD

Affected Software

3 affected componentsFixes available
Open WebUI Open WebUI>0.6.16<0.10.0
openwebui Open WebUI>=0.6.16<0.10.0
pip/open-webui>=0.6.16<0.10.0
0.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/open-webui to a version that resolves this vulnerability.

    Fixed in 0.10.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.10.0
  3. Configuration

    Set Socket.IO server configuration always_connect=False (currently always_connect=True, which “Never rejects connections”) so unauthenticated connections are rejected/handled instead of allowed to reach ydoc handlers.

    Socket.IO server (backend/open_webui/socket/main.py) always_connect = False
  4. Configuration

    Update the connect handler to reject unauthenticated connections (currently it adds authenticated users to SESSION_POOL but never returns False/raises for unauthenticated connections).

    Socket.IO connect handler (backend/open_webui/socket/main.py, line 329) unauthenticated connection handling = reject
  5. Configuration

    Add SESSION_POOL checks to ydoc:awareness:update and ydoc:document:leave before processing/broadcasting events (other Ydoc handlers like ydoc:document:join/update/state already correctly check SESSION_POOL membership).

    ydoc handlers SESSION_POOL membership checks = required
  6. Configuration

    Verify room/document membership before broadcasting to the document room (the attacker’s ydoc:document:leave / ydoc:awareness:update are broadcast to all legitimate users in the document room if membership isn’t verified).

    ydoc broadcasting logic room membership verification = required

Event History

Jul 9, 2026
CVE Published
via MITRE·04:16 PM
Data Sourced
via MITRE·04:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 24, 2026
Advisory Published
via GitHub·04:59 PM
Data Sourced
via GitHub·04:59 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-59715?

The severity of CVE-2026-59715 is rated low at 3.1.

2

What vulnerabilities are exposed in CVE-2026-59715?

CVE-2026-59715 exposes unauthenticated WebSocket access to collaborative document handlers.

3

How do I fix CVE-2026-59715?

To fix CVE-2026-59715, upgrade Open WebUI to version 0.10.0 or later where the Socket.IO server configuration has been updated.

4

What components are affected by CVE-2026-59715?

CVE-2026-59715 affects the Socket.IO server in Open WebUI versions from 0.6.16 before 0.10.0.

5

Is there a public advisory for CVE-2026-59715?

Yes, CVE-2026-59715 has a public advisory available on the Open WebUI GitHub repository.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203