Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Lifecycle Timeline
3DescriptionGitHub Advisory
Summary
Open WebUI v0.6.43 contains a vulnerability in its chat completion API, which allows attackers to bypass tool restrictions, potentially enabling unauthorized actions or access.
Details
In the chat_completion API, the parameters tool_ids and tool_servers are supplied by the user. These parameters are used to create a tools_dict by the middleware. This is then used by get_tool_by_id to retrieve the appropriate tool. However, there is no checks in that ensures the user that uses the API has permission to use the tool, meaning that a user can invoke any server tool by supplying the correct tool_id or tool_servers parameters via the chat completion API. Moreover, the authentication token stored in the server would be used when invoking the tool, so the tool will be invoked with the server privilege.
PoC
To reproduce the issue, create an admin user and create an external tool via the admin settings. Set the type to "MCP Streamable HTTP" for the tool, and the url pointing to a mcp server. For example, the public instance of the "Fetch" mcp server can be used, which is located at "https://remote.mcpservers.org/fetch/mcp". Other mcp servers, e.g. the GitHub MCP server can also be used. Then set the "Auth" field appropriately. (Fetch mcp does not require Auth to be set).
Set the ID, name and description for the MCP server and set visibility to private. This should prevent any user from using the mcp server. (For the example below, we use the fetch mcp server and set the ID to 1)
Next create a user with low privilege and enable API keys from the admin settings.
Then use the chat completion API with the low privilege user with a prompt specifying the use of the restricted tool, and include the id of the tool in the tool_ids parameter. For example, to use the fetch mcp server set up before:
def chat_with_model(token):
url = 'http://localhost:3000/api/chat/completions'
headers = {
'Authorization': f'Bearer {token}',
'Content-Type': 'application/json'
}
data = {
"model": "llama3.1:latest",
"messages": [
{
"role": "user",
"content": "Use the fetch tool to fetch content of the url https://raw.githubusercontent.com/modelcontextprotocol/servers/refs/heads/main/src/fetch/LICENSE"
}],
"tool_ids" : [
"server:mcp:1",
],
}
response = requests.post(url, headers=headers, json=data)
return response.json()Note that the tool will be used to fetch the content of the file, despite the tool is restricted and has it's visibility set to private
Impact
This issue may lead to restricted tools being invoked by users via the chat completion API
Resolution
Fixed across two releases
- Local Tool records (
tool_ids: ["<tool_id>"]referencing a stored Tool): fixed in commit 9b06fdc8f, first released in v0.7.0.get_tools()inbackend/open_webui/utils/tools.py(line 166) now resolves the caller's group memberships and rejects each requestedtool_idwhose owner isn't the caller and for which noAccessGrants.has_access(resource_type='tool', permission='read')grant exists. Admins continue to bypass whenBYPASS_ADMIN_ACCESS_CONTROLis enabled (its documented UI/posture purpose). - Admin-configured MCP servers (
tool_ids: ["server:mcp:<id>"], the report's exact PoC): fixed in commit 4737e1f11, first released in v0.8.6. The MCP-resolution loop inbackend/open_webui/utils/middleware.py(line 2670) now callshas_connection_access(user, mcp_server_connection)and skips the server with a warning if the user has no grant - the server's stored credentials are never used on behalf of an unauthorized caller.
Users on >= 0.8.6 are not affected.
AnalysisAI
Low-privileged authenticated users in Open WebUI <=0.8.5 can invoke admin-restricted external tools (MCP servers, GitHub integrations, etc.) via the chat completion API by supplying arbitrary tool_ids or tool_servers parameters. Exploited tools execute with server-stored credentials, enabling unauthorized data access or actions through third-party integrations. Publicly available exploit code exists (PoC in GitHub advisory GHSA-4pcg-253r-rf9w). EPSS data not provided; CVSS 7.1 indicates network-accessible authenticated exploitation with high confidentiality impact. Vendor-released patches: v0.7.0 (partial, local tools) and v0.8.6 (complete fix for MCP servers). Users on >=0.8.6 are not affected.
Technical ContextAI
Open WebUI is a Python-based web interface for large language models (pip package: open-webui) that supports extensibility through external tools and Model Context Protocol (MCP) servers. The vulnerability stems from CWE-862 (Missing Authorization) in the chat_completion API endpoint (backend/open_webui/main.py). User-supplied tool_ids and tool_servers parameters are passed to middleware functions (backend/open_webui/utils/middleware.py) that construct a tools_dict and invoke get_tool_by_id (backend/open_webui/models/tools.py) without validating the caller's access grants. The API trusts client-provided identifiers and retrieves tools from storage using server-side authentication tokens, bypassing visibility controls (private vs. public) and group-based permissions. MCP servers (streamable HTTP tools) are particularly impactful as they often hold sensitive credentials (GitHub tokens, database connection strings) intended only for admin use. The CVSS vector (AV:N/AC:L/PR:L/UI:N) confirms network-based exploitation requiring only low-privileged authentication with no user interaction.
RemediationAI
Upgrade to Open WebUI v0.8.6 or later (pip install --upgrade open-webui>=0.8.6 or pull Docker image with tag v0.8.6+). This version includes commit 4737e1f11 which enforces has_connection_access checks in the MCP resolution loop (backend/open_webui/utils/middleware.py line 2670), preventing unauthorized users from invoking admin-configured MCP servers. Users upgrading from pre-v0.7.0 should note that v0.7.0 only fixed local tool records (commit 9b06fdc8f) via get_tools() permission checks in backend/open_webui/utils/tools.py; MCP server bypass remained exploitable until v0.8.6. Patch references: https://github.com/open-webui/open-webui/commit/4737e1f11 (primary fix), https://github.com/open-webui/open-webui/releases/tag/v0.8.6. If immediate upgrade is not feasible, disable API key functionality for non-admin users (Admin Settings > API Keys) to prevent exploitation via /api/chat/completions endpoint; this mitigation eliminates remote API access entirely, breaking legitimate automation workflows. Alternatively, remove all admin-configured external tools until upgrade - this reduces functionality but closes the attack surface. No configuration-only workaround exists that preserves both tool functionality and security; the authorization logic requires code-level changes delivered in v0.8.6.
Same weakness CWE-862 – Missing Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30652
GHSA-4pcg-253r-rf9w