Skip to content
XSS Disclosed report Beginner CVE-2024-7990

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).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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.

More from open-webui

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.