mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #23634] [CLOSED] fix: enforce collection ownership on process/web and process/text endpoints #50339
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23634
Author: @Classic298
Created: 4/12/2026
Status: ❌ Closed
Base:
dev← Head:fix/retrieval-collection-write-access📝 Commits (3)
eebe4e8fix: enforce collection ownership on process/file, process/web, and process/text endpointsedf51e5Merge remote-tracking branch 'origin/dev' into fix/retrieval-collection-write-accessca2f351chore: adapt _verify_collection_write_access to upstream async DB migration📊 Changes
1 file changed (+63 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+63 -4)📄 Description
These endpoints accepted an arbitrary collection_name and would overwrite the target collection without verifying the caller owns the underlying resource. An attacker could destroy or poison any KB by supplying its UUID as the collection_name.
Adds _verify_collection_write_access that checks file and knowledge base ownership before allowing writes. Admins bypass the check.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.