CVE-2026-54015

Open WebUI: Prompt history IDOR: unbound history_id allows cross-prompt read and deletion

Published Jun 23, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, Open WebUI's prompt version-history endpoints authorize the prompt_id in the URL but then act on caller-supplied history IDs without verifying that the history row belongs to that prompt (history_entry.prompt_id == prompt.id). This affects /api/v1/prompts/id/{prompt_id}/history/diff, /api/v1/prompts/id/{prompt_id}/update/version, and /api/v1/prompts/id/{prompt_id}/history/{history_id}. An authenticated user with access to any prompt they control, plus a victim prompt_history.id, can read or delete another user's private prompt history. This vulnerability is fixed in 0.9.6.

Analysis

AI-generated

Technical impact

Open WebUI is a self‑hosted artificial intelligence platform that operates entirely offline. In versions before 0.9.6, its prompt‑version history API endpoints validate the prompt ID supplied in the URL but then use a caller‑supplied history ID without verifying that the history record belongs to that prompt. Consequently, any authenticated user who has control over a prompt and can determine or guess a victim’s prompt_history.id can read or delete that user's private prompt history. This is an IDOR vulnerability (CWE‑639) compounded by insufficient authorization controls (CWE‑284).

Affected Systems

The flaw exists in the open‑webui:open‑webui product on all releases prior to version 0.9.6. Any self‑hosted installation running an older version is vulnerable.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. An attacker must first be authenticated and have ownership of at least one prompt, then acquire a victim’s history ID (which can be guessed or enumerated via API). Once these prerequisites are satisfied, the attacker can issue requests to read or delete the victim’s prompt history by hitting the exposed endpoints. The likely attack vector is an authenticated API request over the network; this is inferred from the description of the affected endpoints.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Open WebUI to version 0.9.6 or newer to apply the strict access controls so users can only request history entries belonging to prompts they own; implement ownership validation in future versions or custom patches.
  • Monitor API usage for anomalous read or delete requests against prompt history and review logs for potential abuse.
  • Audit access logs to detect unauthorized read or delete actions and investigate any breaches.

Generated by OpenCVE AI on June 24, 2026 at 10:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4r4w-2wgp-w7cj Open WebUI Prompt history IDOR: unbound history_id allows cross-prompt read and deletion
History
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 a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6, Open WebUI's prompt version-history endpoints authorize the prompt_id in the URL but then act on caller-supplied history IDs without verifying that the history row belongs to that prompt (history_entry.prompt_id == prompt.id). This affects /api/v1/prompts/id/{prompt_id}/history/diff, /api/v1/prompts/id/{prompt_id}/update/version, and /api/v1/prompts/id/{prompt_id}/history/{history_id}. An authenticated user with access to any prompt they control, plus a victim prompt_history.id, can read or delete another user's private prompt history. This vulnerability is fixed in 0.9.6.
Title Open WebUI: Prompt history IDOR: unbound history_id allows cross-prompt read and deletion
Weaknesses CWE-284
CWE-639
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-284

    Improper Access Control

  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 24, 2026, 2:20 PM
Reserved
Jun 11, 2026, 4:34 PM
Status
Analyzed
Published
Jun 23, 2026, 6:18 PM
Modified
Jun 25, 2026, 2:35 PM