Open WebUI
cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*
- <= 0.8.12
A cross-site scripting (XSS) vulnerability has been identified in Open WebUI versions prior to 0.9.0. The issue arises in the AccountPending.svelte component, where the 'Pending User Overlay Content' is rendered using marked.parse() inside {@html} with an incorrect application order of DOMPurify. This flaw allows an admin to inject arbitrary JavaScript into the overlay content, which executes in the browser context of any pending user who views the overlay page.
Exploitation of this vulnerability allows an admin to inject and execute arbitrary JavaScript in the context of pending users, potentially leading to session hijacking, credential theft, or phishing attacks.
To reproduce this vulnerability, log in as an admin user on Open WebUI version 0.8.10. Navigate to the Admin Settings and set the Default User Role to pending. In the Pending User Overlay Content field, enter a Markdown-formatted message including a link with a 'javascript:' href. Save the settings, then log in as a pending user to see the overlay. Clicking the injected link will trigger a JavaScript alert, demonstrating the successful execution of the injected script.
Users should update to Open WebUI version 0.9.0 or later, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.