From bf616b21df4cb44b89bd71c0d083b54cff8dca52 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 25 Nov 2026 00:01:35 +0100 Subject: [PATCH] refac: check participation type before lookup (#34979) The encrypted channel relay now rejects a participation value that is not a string before looking it up. --- backend/open_webui/socket/encryption.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/socket/encryption.py b/backend/open_webui/socket/encryption.py index b3ca7ba7b7..c08c6a9dd2 100644 --- a/backend/open_webui/socket/encryption.py +++ b/backend/open_webui/socket/encryption.py @@ -368,6 +368,7 @@ class Relay: return await self.reserve(action, sid, user, channel, data, state) require(state and data.get('session') == state['session'] and self.local.get(sid) == channel) pid = data.get('participation') + require(isinstance(pid, str)) member = state['members'].get(pid) require(member and member['sid'] == sid and member['user'] == user.id) member['seen'] = time.time()