AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-70488: Open WebUI: Deletion of directories and file embeddings in other knowledge bases via sync cleanup

mediumCVSS 3.1 4.3GHSA-jxc9-xmc4-gr23

Open WebUI 0.9.6 through 0.10.2 lets a user with write access to one knowledge base delete directories and drop file embeddings that belong to other knowledge bases. The sync cleanup endpoint checks access on the knowledge base in the URL, then acts on ids in the request body. Fixed in 0.11.0.

Published Aug 4, 2026 · Analysis Nov 23, 2026

What an attacker can do

The handler sync_knowledge_cleanup, behind POST /api/v1/knowledge/{id}/sync/cleanup in backend/open_webui/routers/knowledge.py, verified write access on the knowledge base named in the URL. It then deleted directories and cleaned up file vectors by the ids in the body, without checking those objects belonged to that knowledge base. The explicit directory-delete endpoint in the same router already had the check.

The attacker needs write access to at least one knowledge base, and the victim's directory or file ids. Those are UUIDs and cannot be enumerated, so in practice the attacker is a read-only collaborator on a shared knowledge base. workspace.knowledge is off by default. The effects: a deleted directory removes the file associations for its whole subtree, so documents silently drop out of the victim's knowledge base and its retrieval results. The per-file cleanup also dropped the standalone per-file vector collection (named file- plus the file id) for any file id, breaking chat-with-file for that document. Stored files and database rows survive, and an owner can restore by re-adding and reprocessing. Nothing is disclosed to the attacker.

Who is affected

pip package open-webui at >= 0.9.6, <= 0.10.2. All builds from 0.9.6 onward are affected, with no optional dependency involved. Only deployments where a knowledge base is shared with other writers or readers are reachable. Check the version:

pip show open-webui

open-webui

Ecosystem
PyPI
Affected
>= 0.9.6, <= 0.10.2
Fixed in
0.11.0
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.11.0:

pip install --upgrade open-webui==0.11.0

The fix (pull request 26722) scopes both request-body loops to the knowledge base in the URL. A directory is skipped unless its knowledge_id matches, and file vector cleanup runs only for files that are members of that knowledge base. The advisory documents no workaround. Its preconditions suggest limiting who holds write access to shared knowledge bases until you can upgrade.

How to tell if you were hit

Review server logs for POST requests to /api/v1/knowledge/ paths ending in /sync/cleanup from users who are not the owner of the affected content. Look for knowledge bases that lost directories or whose files vanished from retrieval, and for chat-with-file failures on documents that still exist. Compare file lists with backups. The sources do not report exploitation in the wild.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A user with write access to one knowledge base could delete directories, and drop file embeddings, belonging to knowledge bases they do not control. The sync cleanup endpoint verified write access on the knowledge base named in the URL and then acted on the directory and file ids supplied in the request body without checking that those objects belonged to that knowledge base.

Preconditions

Default configuration, no flags involved. The attacker needs write access to at least one knowledge base, which comes from owning one, from a write access grant, or from the admin role; workspace.knowledge is off by default, so an ordinary user cannot simply create one. They also need the victim's directory or file id, which are UUIDs and are not enumerable, so in practice the attacker is someone who can already see the target knowledge base, typically a read-only collaborator on a shared one. Deployments where no knowledge base is shared beyond its owner are not reachable.

Impact

The attacker deletes a target directory and, because the deletion runs without moving files to the parent, the knowledge_file associations for every file in that subtree are removed as well, so those documents silently drop out of the victim's knowledge base and out of its retrieval results. Separately, the per-file vector cleanup dropped the standalone file-<id> collection for any file id, breaking chat-with-file for that document. The stored files and their database rows survive, since that path was gated on file ownership, and an owner can restore the state by re-adding and reprocessing. Nothing about the target knowledge base's contents is disclosed to the attacker.

Fix

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.

Root cause

Affected component: backend/open_webui/routers/knowledge.py, handler sync_knowledge_cleanup, endpoint POST /api/v1/knowledge/{id}/sync/cleanup. Affected setup: all builds from 0.9.6 onward, no optional dependency involved.

The handler treated the write-access check on the URL knowledge base as authorization for everything it went on to do, but the objects it acted on came from the request body and were addressed by primary key alone. Directory deletion at the model layer deletes by directory id and has no notion of a parent knowledge base, so the only thing that could have bound the two together was a membership check in the handler, and there was none. The explicit directory-delete endpoint in the same router already carried that check, which is what makes this a gap in one handler rather than a missing model-layer control.

Credits

Reported by @whyiug.

Credited to whyiug, Classic298.

Questions

Does CVE-2026-70488 let an attacker read other knowledge bases?

No. The advisory says nothing about the target knowledge base's contents is disclosed. The impact is deletion of directories, file associations and vector collections.

Is data permanently lost?

Not usually. Stored files and database rows survive, so an owner can restore the state by re-adding the files and reprocessing them. The loss is the associations and embeddings.

What does an attacker need?

Write access to any knowledge base, plus the target's directory or file UUIDs. Those are not enumerable, so a read-only collaborator on a shared knowledge base is the realistic attacker.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries