$ the-wire · showcase
Open WebUI patches folder_id authorization and tool_servers bypass
By RepoJournal · Filed · About Open WebUI
Two security fixes close validation gaps on chat creation and tool server enforcement in Open WebUI.
Open WebUI shipped two security fixes from contributor Classic298 [1] [2]. POST /api/v1/chats/new and POST /api/v1/chats/{id}/folder now validate folder_id against ownership, existence, and UUID format. Previously, a caller-supplied folder_id was persisted verbatim, allowing chat rows to reference another user's folder or a non-existent UUID. No cross-user read path exposed these rows, limiting immediate exploitation, but the data integrity risk is closed.
Separately, the features.direct_tool_servers permission is now enforced on the inference path (/api/chat/completions). The fix ensures the per-user flag, previously stripped only from stored settings in routers/users.py, also applies when tool_servers come straight from the request body into metadata.
Three translation updates landed for Swedish (sv-SE), German (de-DE), and Spanish (es-ES), bringing new UI strings into sync with v0.9.5.
Action items
- → Upgrade to a build containing these fixes before next deploy to close folder_id authorization gap open-webui/open-webui [immediate]
- → Review any existing chat rows for invalid folder_id values after upgrade open-webui/open-webui [plan]
References
- [1] fix: validate folder_id ownership on chat create + folder-update endpoints (#24588) ↗ open-webui/open-webui
- [2] fix: enforce features.direct_tool_servers on chat-completion tool_servers (#24693) ↗ open-webui/open-webui
- [3] i18n: Update Swedish (sv-SE) translation ↗ open-webui/open-webui