Skip to content
MediumVulnerability

GHSA-jxc9-xmc4-gr23: Open WebUI: Deletion of directories and file embeddings in other knowledge bases via sync cleanup

Published
Record updated
View JSON
Affected
  • open-webui >= 0.9.6, <= 0.10.2
Fixed in
0.11.0
  • released July 27, 2026, 8 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Open WebUI, in all builds from 0.9.6 onward, has an authorization gap in the `POST /api/v1/knowledge/{id}/sync/cleanup` endpoint (`sync_knowledge_cleanup` in `backend/open_webui/routers/knowledge.py`). The handler checks write access only on the knowledge base named in the URL, then deletes directories and drops file embeddings using ids from the request body without confirming they belong to that knowledge base. A user with write access to one knowledge base can therefore remove another knowledge base's directories and file associations, and break chat-with-file for affected documents. The stored files survive, and no knowledge base contents are disclosed.

Mitigation

Fixed in https://github.com/open-webui/open-webui/pull/26722. Both request-body loops are now scoped to the knowledge base in the URL: a directory is resolved and skipped unless its `knowledge_id` matches, and the per-file vector cleanup runs only for files that are members of that knowledge base. Upgrading fully resolves the issue.