Unknown · Open-Webui · CVE-2025-46571
**Name of the Vulnerable Software and Affected Versions**
Open WebUI versions prior to 0.6.6
**Description**
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Low-privileged users can upload HTML files containing JavaScript code via the "/api/v1/files/" backend endpoint, which returns a file id. This file id can be used to open the file in the browser and trigger the JavaScript code in the user's browser. Under default settings, files uploaded by low-privileged users can only be viewed by admins or themselves, limiting the impact. However, a link to such a file can be sent to an admin, and if clicked, will give the low-privileged user complete control over the admin's account, enabling remote code execution (RCE) via functions.
**Recommendations**
For versions prior to 0.6.6, update to version 0.6.6 or later to resolve the issue. As a temporary workaround, consider restricting access to the "/api/v1/files/" endpoint to prevent low-privileged users from uploading malicious files. Additionally, admins should exercise caution when clicking on links to files uploaded by low-privileged users.