Browse / AI Framework and Platform Flaws / CVE-2024-7990
Open WebUI stored cross-site scripting (XSS) vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Cross-site scripting
- Affected
- open-webui (PyPI)
- Gets past
- Input filter or sanitiser
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
How it works, in short
The model description set through the add model endpoint is stored with insufficient sanitising and later runs as script when rendered in chat. (Our summary, written by a model. The source text is below.)
Details
A stored cross-site scripting (XSS) vulnerability exists in open-webui/open-webui version 0.3.8. The vulnerability is present in the /api/v1/models/add endpoint, where the model description field is improperly sanitized before being rendered in chat. This allows an attacker to inject malicious scripts that can be executed by any user, including administrators, potentially leading to arbitrary code execution.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7990
- https://github.com/open-webui/open-webui
- https://huntr.com/bounties/2256e336-0f67-449e-a82d-7fc57081a21c
Source: GitHub Advisory Database, used under CC BY 4.0.