Skip to content
HighVulnerability

GHSA-4vrc-m9ch-6m3r: Open WebUI has stored XSS via the HTML renedering view

Published
Record updated
View JSON
Affected
  • open-webui < 0.6.5
Fixed in
0.6.5
  • released April 14, 2025, 395 days before disclosure

Summary

Open WebUI's HTML rendering view embeds chat HTML in an iFrame with the sandbox directive `allow-scripts allow-forms allow-same-origin`, which largely nullifies the sandbox. A script placed in a chat can run and read the user's `localStorage` token, tested on version 0.5.4. The attacker must trick a user into entering the input, sharing or importing a chat, or displaying an uploaded file, so the report rates Attack Complexity as High.

Mitigation

The iFrame sandbox should be defined more restrictively to prevent scripts from executing with access to the parent's data.