CVE-2026-45350: open-webui: missing authz allows admin tool hijacking

GHSA-4pcg-253r-rf9w HIGH PoC AVAILABLE CISA: TRACK*
Published May 14, 2026
CISO Take

Open WebUI's chat completion API accepts user-supplied tool_ids and tool_servers parameters without verifying whether the calling user has permission to access those tools, meaning any authenticated user can invoke admin-configured private tools — including MCP servers — simply by supplying the correct identifier in an API request. The critical amplifier is that tools execute using the server's own stored credentials, so an attacker with a low-privilege API key effectively inherits admin-level access to every connected external service (GitHub, file systems, internal APIs, etc.) configured by administrators. With CVSS 7.1 High, network-accessible, low complexity, no user interaction required, and 91 prior CVEs in this package signalling a historically attack-prone codebase, this warrants immediate attention in any enterprise deployment. Upgrade to open-webui >= 0.8.6; if immediate patching is blocked, disable external MCP server integrations and rotate all stored tool credentials as a precaution.

Sources: GitHub Advisory NVD ATLAS

What is the risk?

High risk for any Open WebUI deployment with admin-configured external tools or MCP servers. The attack requires only a valid low-privilege account or API key — obtainable through self-registration if enabled — and a single crafted API call. No AI/ML expertise is needed; the PoC is a dozen lines of Python. The privilege escalation is complete: the attacker does not just read restricted data but can invoke any action the server credentials permit on connected systems. Blast radius scales with the number and sensitivity of admin-configured MCP servers and tools in the deployment.

How does the attack unfold?

Initial Access
Attacker obtains a low-privilege Open WebUI account or API key, either through self-registration (if enabled) or by compromising an existing non-admin user.
AML.T0012
Tool Discovery
Attacker enumerates admin-configured MCP server IDs via sequential integer guessing (server:mcp:1, server:mcp:2, etc.) or by observing tool IDs in prior legitimate API responses.
AML.T0084.001
Authorization Bypass
Attacker sends a crafted POST to /api/chat/completions with their low-privilege token, including the restricted tool's ID in the tool_ids parameter — the missing authz check allows the server to resolve and prepare the tool.
AML.T0049
Privileged Tool Execution
Open WebUI invokes the MCP server tool using the server's stored admin credentials, executing attacker-directed actions (data read/write, API calls, file access) on connected external systems with admin-level authority.
AML.T0053

What systems are affected?

Package Ecosystem Vulnerable Range Patched
Open WebUI pip <= 0.8.5 0.8.6
143.3K Pushed 8d ago 77% patched ~5d to patch Full package profile →

Do you use Open WebUI? You're affected.

How severe is it?

CVSS 3.1
7.1 / 10
EPSS
0.3%
chance of exploitation in 30 days
Higher than 17% of all CVEs
Exploitation Status
Exploit Available
Exploitation: MEDIUM
Sophistication
Trivial
Exploitation Confidence
medium
CISA SSVC: Public PoC
Public PoC indexed (trickest/cve)
Composite signal derived from CISA KEV, VulnCheck KEV, CISA SSVC, EPSS, Metasploit, Exploit-DB, trickest/cve, Nuclei templates, and inthewild.io exploitation reports.

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR Low
UI None
S Unchanged
C High
I Low
A None

What should I do?

5 steps
  1. PATCH IMMEDIATELY

    Upgrade to open-webui >= 0.8.6, which adds has_connection_access() checks in the MCP-resolution loop (middleware.py:2670) rejecting unauthorized callers before stored credentials are used. Local tool records were fixed in v0.7.0 (get_tools() now enforces AccessGrants).

  2. ROTATE CREDENTIALS

    Audit all admin-configured tool and MCP server credentials and rotate them — assume any credential stored in an affected instance (< 0.8.6) may have been used by unauthorized callers.

  3. PRE-PATCH WORKAROUND: If upgrade is not immediately possible, remove or disable all admin-configured MCP servers and private tools until patching is complete.

  4. DETECTION

    Review access logs for the /api/chat/completions endpoint for requests containing tool_ids with the server:mcp: prefix originating from non-admin user tokens.

  5. AUDIT

    Verify BYPASS_ADMIN_ACCESS_CONTROL setting is not enabled post-patch, as admins deliberately bypass access controls when this flag is set.

What does CISA's SSVC say?

Decision Track*
Exploitation poc
Automatable No
Technical Impact partial

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity
ISO 42001
A.6.2 - AI System Access Controls
NIST AI RMF
MANAGE 2.2 - Residual risks are managed
OWASP LLM Top 10
LLM07:2023 - Insecure Plugin Design LLM08:2023 - Excessive Agency

Frequently Asked Questions

What is CVE-2026-45350?

Open WebUI's chat completion API accepts user-supplied tool_ids and tool_servers parameters without verifying whether the calling user has permission to access those tools, meaning any authenticated user can invoke admin-configured private tools — including MCP servers — simply by supplying the correct identifier in an API request. The critical amplifier is that tools execute using the server's own stored credentials, so an attacker with a low-privilege API key effectively inherits admin-level access to every connected external service (GitHub, file systems, internal APIs, etc.) configured by administrators. With CVSS 7.1 High, network-accessible, low complexity, no user interaction required, and 91 prior CVEs in this package signalling a historically attack-prone codebase, this warrants immediate attention in any enterprise deployment. Upgrade to open-webui >= 0.8.6; if immediate patching is blocked, disable external MCP server integrations and rotate all stored tool credentials as a precaution.

Is CVE-2026-45350 actively exploited?

Proof-of-concept exploit code is publicly available for CVE-2026-45350, increasing the risk of exploitation.

How to fix CVE-2026-45350?

1. PATCH IMMEDIATELY: Upgrade to open-webui >= 0.8.6, which adds has_connection_access() checks in the MCP-resolution loop (middleware.py:2670) rejecting unauthorized callers before stored credentials are used. Local tool records were fixed in v0.7.0 (get_tools() now enforces AccessGrants). 2. ROTATE CREDENTIALS: Audit all admin-configured tool and MCP server credentials and rotate them — assume any credential stored in an affected instance (< 0.8.6) may have been used by unauthorized callers. 3. PRE-PATCH WORKAROUND: If upgrade is not immediately possible, remove or disable all admin-configured MCP servers and private tools until patching is complete. 4. DETECTION: Review access logs for the /api/chat/completions endpoint for requests containing tool_ids with the server:mcp: prefix originating from non-admin user tokens. 5. AUDIT: Verify BYPASS_ADMIN_ACCESS_CONTROL setting is not enabled post-patch, as admins deliberately bypass access controls when this flag is set.

What systems are affected by CVE-2026-45350?

This vulnerability affects the following AI/ML architecture patterns: AI chat interfaces with external tool integrations, MCP-connected agent systems, Enterprise AI assistants with internal API access, Multi-tenant LLM deployment platforms.

What is the CVSS score for CVE-2026-45350?

CVE-2026-45350 has a CVSS v3.1 base score of 7.1 (HIGH). The EPSS exploitation probability is 0.26%.

What is the AI security impact?

Affected AI Architectures

AI chat interfaces with external tool integrationsMCP-connected agent systemsEnterprise AI assistants with internal API accessMulti-tenant LLM deployment platforms

MITRE ATLAS Techniques

AML.T0049 Exploit Public-Facing Application
AML.T0053 AI Agent Tool Invocation
AML.T0086 Exfiltration via AI Agent Tool Invocation
AML.T0091.000 Application Access Token

Compliance Controls Affected

EU AI Act: Article 15
ISO 42001: A.6.2
NIST AI RMF: MANAGE 2.2
OWASP LLM Top 10: LLM07:2023, LLM08:2023

What are the technical details?

Original 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](https://github.com/open-webui/open-webui/blob/a7271532f8a38da46785afcaa7e65f9a45e7d753/backend/open_webui/main.py#L1529) API, the parameters [tool_ids and tool_servers](https://github.com/open-webui/open-webui/blob/a7271532f8a38da46785afcaa7e65f9a45e7d753/backend/open_webui/main.py#L1613-L1614) are supplied by the user. These parameters are used to [create a tools_dict by the middleware](https://github.com/open-webui/open-webui/blob/a7271532f8a38da46785afcaa7e65f9a45e7d753/backend/open_webui/utils/middleware.py#L1394). This is then used by [get_tool_by_id](https://github.com/open-webui/open-webui/blob/a7271532f8a38da46785afcaa7e65f9a45e7d753/backend/open_webui/models/tools.py#L139) 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](https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/README.md) 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](https://github.com/open-webui/open-webui/commit/9b06fdc8fe1c933071610336be05f11e77e6c8eb), first released in **v0.7.0**. `get_tools()` in `backend/open_webui/utils/tools.py` (line 166) now resolves the caller's group memberships and rejects each requested `tool_id` whose owner isn't the caller and for which no `AccessGrants.has_access(resource_type='tool', permission='read')` grant exists. Admins continue to bypass when `BYPASS_ADMIN_ACCESS_CONTROL` is enabled (its documented UI/posture purpose). - **Admin-configured MCP servers** (`tool_ids: ["server:mcp:<id>"]`, the report's exact PoC): fixed in commit [4737e1f11](https://github.com/open-webui/open-webui/commit/4737e1f11), first released in **v0.8.6**. The MCP-resolution loop in `backend/open_webui/utils/middleware.py` (line 2670) now calls `has_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.

Exploitation Scenario

An attacker with a low-privilege account (or a self-registered user if registration is open) enables API key access from their profile settings. They enumerate or guess the numeric IDs of admin-configured MCP servers — IDs are sequential integers, making enumeration trivial. The attacker sends a POST to /api/chat/completions with their Bearer token, including tool_ids: ['server:mcp:1'] and a prompt instructing the model to use the tool. Open WebUI resolves the MCP server record, retrieves the stored admin authentication token, and invokes the tool on the attacker's behalf. Using a GitHub MCP server as an example, the attacker can read private repositories, create issues, or push code — all authenticated as the admin-level service account. The entire attack requires no special AI knowledge and completes in seconds.

Weaknesses (CWE)

CWE-862 — Missing Authorization: The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

  • [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Timeline

Published
May 14, 2026
Last Modified
May 14, 2026
First Seen
May 15, 2026

Related Vulnerabilities