Skip to content
MediumVulnerability

GHSA-fq3v-xjjx-95rc: Open WebUI has Stored XSS in Pending User Overlay via Incorrect DOMPurify Application Order

Published
Record updated
View JSON
Affected
  • open-webui <= 0.8.12
Fixed in
0.9.0
  • released April 21, 2026, 17 days before disclosure

Summary

Open WebUI v0.8.10 renders the admin-configured Pending User Overlay Content in AccountPending.svelte by applying DOMPurify to the raw Markdown before marked.parse() and then rendering the result unsanitized with {@html}, which is the wrong order (CWE-79). An admin can enter a javascript: link that runs script in the browser of any pending user who views the overlay, enabling JWT theft, fake login forms, or redirects.

Mitigation

Apply DOMPurify after marked.parse(), as in the proposed fix: {@html DOMPurify.sanitize(marked.parse(...content..., { async: false }))}.