CVE-2026-70491

Open WebUI: Tool source code disclosed to read-only users via the tool list and get endpoints

Published Aug 4, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. In 0.10.2 and earlier, the GET /api/v1/tools/, GET /api/v1/tools/list, and GET /api/v1/tools/id/{id} endpoints in backend/open_webui/routers/tools.py returned full Python tool source to authenticated non-admin read-only users. ToolResponse deliberately omitted source and specs, but ToolUserResponse permitted extra fields and handlers spread a full tool model dump into the response, re-admitting omitted fields. A non-admin with a read grant can obtain another user's server-side tool source, which commonly embeds hard-coded API keys, credentials, and internal service URLs. This issue is fixed in 0.11.0.

Analysis

AI-generated

Technical impact

In Open WebUI versions 0.10.2 and earlier the back‑end API endpoints used to list and retrieve tool definitions returned the full Python source code of the tool to any authenticated user with a read‑only allowance. The tool source often contains embedded API keys, credentials and URLs to internal services, meaning an attacker with read rights can obtain sensitive data that should remain confidential. This weakness is a classic example of CWE‑200, where information is exposed through insufficient access control.

Affected Systems

The affected product is Open WebUI (open-webui:open-webui). All releases up to 0.10.2 are impacted; the issue is resolved in v0.11.0 and later. The vulnerability applies to the GET /api/v1/tools/, /api/v1/tools/list, and /api/v1/tools/id/{id} endpoints provided by backend/open_webui/routers/tools.py.

Risk and Exploitability

The CVSS score of 6.5 indicates a medium severity event. The EPSS score is not available, and the vulnerability is not currently listed in CISA’s KEV catalog, suggesting limited publicly known exploitation activity. Exploitation requires only an authenticated session with read‑only privileges; thus any user who can log in with such permissions can trigger the information leakage. The attack vector is therefore an authenticated HTTP request to the exposed endpoints. The potential impact is the compromise of API keys and other confidential data, which could enable further attacks on downstream services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Open WebUI version 0.11.0 or later to apply the fix that eliminates source code exposure in API responses.
  • If upgrading is not immediately possible, restrict or remove read‑only permissions for non‑admin users from the /api/v1/tools/ endpoints to prevent the leaking of tool source.
  • Review existing use of internal tools for embedded secrets and refactor to store credentials in secure vaults or environment variables instead of in source code.

Generated by OpenCVE AI on August 4, 2026 at 22:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3r7g-q6cg-q2vx Open WebUI: Tool source code disclosed to read-only users via the tool list and get endpoints
History
Type Values Removed Values Added
First Time appeared Openwebui
Openwebui open Webui
CPEs cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*
Vendors & Products Openwebui
Openwebui open Webui
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui
Type Values Removed Values Added
Description Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. In 0.10.2 and earlier, the GET /api/v1/tools/, GET /api/v1/tools/list, and GET /api/v1/tools/id/{id} endpoints in backend/open_webui/routers/tools.py returned full Python tool source to authenticated non-admin read-only users. ToolResponse deliberately omitted source and specs, but ToolUserResponse permitted extra fields and handlers spread a full tool model dump into the response, re-admitting omitted fields. A non-admin with a read grant can obtain another user's server-side tool source, which commonly embeds hard-coded API keys, credentials, and internal service URLs. This issue is fixed in 0.11.0.
Title Open WebUI: Tool source code disclosed to read-only users via the tool list and get endpoints
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 5, 2026, 2:45 PM
Reserved
Aug 4, 2026, 3:24 PM
Status
Analyzed
Published
Aug 4, 2026, 9:16 PM
Modified
Sep 18, 2026, 2:47 PM