CVE-2024-7990: Open WebUI Stored XSS Vulnerability in open-webui Package
Summary
CVE-2024-7990: Open WebUI stored cross-site scripting (XSS) vulnerability. Affects open-webui versions < 0.3.8. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Open WebUI is an open-source web application framework designed for building user interfaces. It provides developers with tools to create interactive web applications with ease. The framework is widely used for its simplicity and flexibility. However, version 0.3.8 of the open-webui package has been identified to contain a stored cross-site scripting (XSS) vulnerability, which poses significant security risks to users and administrators.
Vulnerability Detail
A stored cross-site scripting (XSS) vulnerability exists in the open-webui version 0.3.8. This vulnerability is located in the /api/v1/models/add endpoint, where the model description field is not properly sanitized before being rendered in chat. This oversight allows attackers to inject malicious scripts that can be executed by any user, including administrators. The potential ramifications include unauthorized access, data theft, and arbitrary code execution, making it critical to address this issue promptly.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can implement input validation and sanitization on the model description field before rendering it in chat. This can help mitigate the risk of XSS attacks until the package is updated. For example, you can use libraries like DOMPurify to sanitize user inputs.
Conclusion
The stored XSS vulnerability in the open-webui package poses significant risks to users and administrators. It is essential to update to a patched version to mitigate these risks. Implementing input validation and sanitization can serve as a temporary workaround until the update is applied.
See every vulnerability recorded for open-webui →
FAQ
CVE-2024-7990 is a stored cross-site scripting (XSS) vulnerability found in the open-webui package version 0.3.8.
This vulnerability allows attackers to inject malicious scripts that can be executed by any user, potentially leading to unauthorized access and data theft.
If you are using version 0.3.8, it is crucial to update to a patched version immediately to protect against this vulnerability.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
The CVSS score of this vulnerability is 8.4, indicating a high severity level.
Related vulnerabilities
Recent vulnerabilities recorded for open-webui.