Skip to content
MediumVulnerability

GHSA-4r4w-2wgp-w7cj: Open WebUI Prompt history IDOR: unbound history_id allows cross-prompt read and deletion

Published
Record updated
View JSON
Affected
  • open-webui <= 0.9.5
Fixed in
0.9.6
  • released June 1, 2026, 16 days before disclosure

Summary

Open WebUI's prompt version-history endpoints check access to the prompt_id in the URL but then act on caller-supplied history IDs without confirming that the history row belongs to that prompt. Three operations are affected: GET /api/v1/prompts/id/{prompt_id}/history/diff, which returns other prompts' snapshots; POST .../update/version, which restores a foreign snapshot into the caller's prompt; and DELETE .../history/{history_id}, which deletes another prompt's history entry. An authenticated user who has a victim prompt_history.id can read or delete another user's private prompt history, and the active prompt row itself is not destroyed.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.