Open WebUI stored cross-site scripting (XSS) vulnerability
The model description field in the /api/v1/models/add endpoint was not properly sanitised before being displayed in chat, allowing stored cross-site scripting. An attacker could inject malicious scripts that execute for any user, including administrators, potentially leading to arbitrary code execution.
open-webui
Originally disclosed on huntr
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.
From the GitHub Advisory Database (GHSA-gj27-76gq-5v3p, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could run scripts in the browsers of any user, including administrators, potentially leading to arbitrary code execution.
What the attacker needed
Ability to add or edit a model description
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A stored cross-site scripting (XSS) flaw means a website saves harmful code and shows it to other people later. Here, the description of an AI model was saved without cleaning, so when anyone opened a chat that showed the description, the hidden code ran in their browser. That could let an attacker act as the victim, including an administrator.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.