CVE-2026-87998: Open WebUI: Non-admin users can delete admin-owned external knowledge connections via knowledge base deletion
In Open WebUI 0.10.0 through 0.11.0, a normal user with a write grant on one external knowledge base can delete the shared admin-owned connection behind it. Every other knowledge base on that connection stops working. Fixed in 0.11.1. Instances without external knowledge bases are not affected.
Published Sep 10, 2026 · Analysis Nov 7, 2026
What an attacker can do
External knowledge connections are admin-owned and shared by all external knowledge bases bound to them. The delete handler for a knowledge base, DELETE /api/v1/knowledge/{id}/delete in backend/open_webui/routers/knowledge.py, checks the caller against that one knowledge base. A write grant passes. The same request then removes the connection from the instance configuration. That second step has no role check and does not count other knowledge bases still using the connection (CWE-863, CWE-269). The admin route for deleting a connection does both checks.
The attacker needs an ordinary account with a write grant on an external knowledge base using the qdrant, milvus or pgvector providers. A read grant is not enough.
After the delete, other knowledge bases keep their connection id but retrieval fails with "External knowledge connection not found". Chats get no results from them. The stored credential is gone too, and connection API responses hide credentials. An admin who did not keep the key must obtain it again.
Nothing is disclosed to the attacker and the external vector store is untouched. The damage is to configuration and availability.
Who is affected
The open-webui pip package from 0.10.0, where external knowledge connections were introduced, up to and including 0.11.0. Only deployments that use external knowledge bases are affected. Local-only knowledge bases are not.
pip show open-webuiopen-webui
- Ecosystem
- PyPI
- Affected
- >= 0.10.0, < 0.11.1
- Fixed in
- 0.11.1
- Check
pip show open-webui
How to fix it
Upgrade to 0.11.1:
pip install --upgrade open-webui==0.11.1The fix is pull request 28113. Deleting an external knowledge base now clears its connection only when the caller is an administrator and it is the last knowledge base using that connection. No configuration change is needed. The advisory documents no workaround. Limiting who holds write grants on external knowledge bases reduces exposure but is not an official mitigation.
How to tell if you were hit
Look for DELETE requests to /api/v1/knowledge/{id}/delete made by non-admin users. Check whether the admin connection list lost entries you created. Watch for chat retrieval errors reading "External knowledge connection not found" on knowledge bases that worked before. Keep a copy of connection credentials elsewhere, because they cannot be read back from the API.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
External knowledge connections are created and owned by administrators, and are shared by every external knowledge base bound to them. Deleting an external knowledge base also removed that connection from the instance configuration, with no check on the caller's role and no check for other knowledge bases still using it. Any authenticated user holding a write grant on a single external knowledge base could therefore wipe a shared connection that other knowledge bases depend on, and the dedicated administrator route for deleting a connection explicitly refuses that same operation while the connection is still in use.
Preconditions
The deployment uses external knowledge bases, backed by the qdrant, milvus or pgvector external providers. Instances with only local knowledge bases are not affected.
An administrator created at least one external connection and at least one external knowledge base bound to it. Both of those actions are admin-only.
The attacker is an ordinary authenticated user holding a write grant on one of those external knowledge bases. A read grant is not enough, and an unrelated user cannot reach the route at all.
The damage scales with sharing. It is worst when one connection backs several knowledge bases, because deleting a single knowledge base destroys the connection for all of them.
Impact
An ordinary user removes instance-wide configuration that only administrators can create or manage. Every other external knowledge base bound to the deleted connection keeps its stored connection id and stops working: retrieval against it fails with "External knowledge connection not found", so those knowledge bases return nothing in chat until an administrator recreates the connection by hand. The stored credential goes with it, and connection API responses strip credentials, so an administrator who did not keep the key elsewhere cannot restore the connection without obtaining it again.
Nothing is disclosed to the attacker and the external vector store itself is untouched. What is lost is Open WebUI's own connection configuration, and the availability of the knowledge bases that depend on it.
Fix
Fixed in 0.11.1 by https://github.com/open-webui/open-webui/pull/28113. Deleting an external knowledge base now clears its connection only when the caller is an administrator and the knowledge base being deleted is the last one referencing that connection, matching the dedicated connection delete route. Upgrading resolves the issue with no configuration change required.
Root cause
Affected component: the knowledge base delete handler in backend/open_webui/routers/knowledge.py, reached through DELETE /api/v1/knowledge/{id}/delete.
Affected setup: every release from 0.10.0, where external knowledge connections were introduced, up to and including 0.11.0.
The handler authorized the caller against the knowledge base, which a write grant satisfies, and then performed a second, unrelated operation against global configuration in the same request. That second step carried no authorization of its own. It neither required the administrator role that creating a connection requires, nor counted the other knowledge bases still bound to the connection. The dedicated route DELETE /api/v1/knowledge/external/connections/{id} already performed both checks, so an outcome an administrator was blocked from was reachable by a non-administrator through the knowledge base route.
Proof of concept
Reproduced against a local instance on 0.11.0 with default settings, and against 0.11.1 for comparison.
An administrator created one external connection and two external knowledge bases bound to it, then granted a plain user write access on the first knowledge base. As that user:
DELETE /api/v1/knowledge/{KB_A}/delete
Authorization: Bearer <user token>On 0.11.0 the request returns 200 true. The administrator connection list then returns zero connections, the second knowledge base still carries the deleted connection id, and retrieving from it raises "External knowledge connection not found".
On 0.11.1 the same request deletes the knowledge base, the connection list still returns the connection, and the second knowledge base is unaffected. An administrator deleting the last remaining knowledge base on that connection still clears it, so the intended cleanup is preserved.
Credits
@Bellingham-max, for reporting the missing authorization on the shared connection teardown.
Credited to Bellingham-max, Classic298.
Questions
- Can an attacker read data through this flaw?
No. The advisory says nothing is disclosed and the external vector store is untouched. The impact is deleted connection config and broken retrieval.
- Do read-only users need to worry?
A read grant is not enough to trigger it. The attacker needs a write grant on one external knowledge base. An unrelated user cannot reach the route.
- Which Open WebUI versions are affected?
0.10.0 through 0.11.0. Version 0.11.1 fixes it.
References
Read for this analysis:
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 entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
