Open WebUI stored cross-site scripting (XSS) vulnerability
Date: 2025-03
Affected: pip/open-webui
Attack vector: xss
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-7990
CWE: CWE-79
CVSS: 8.4 (CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):