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.
Published: 2026-08-04
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 04 Aug 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Tue, 04 Aug 2026 21:15:00 +0000

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'}


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-04T20:51:27.840Z

Reserved: 2026-08-04T15:24:41.340Z

Link: CVE-2026-70491

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T22:45:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor