AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-7990: Open WebUI stored cross-site scripting (XSS) vulnerability

highCVSS 3.0 8.4GHSA-gj27-76gq-5v3p

Open WebUI 0.3.8 and earlier has a stored cross-site scripting flaw. The model description field sent to /api/v1/models/add is not sanitized before it is shown in chat, so script runs for any user who views it, including administrators. The advisory lists no patched version.

Published Mar 20, 2025 · Updated Mar 21, 2025 · Analysis Nov 10, 2026

What an attacker can do

A model entry created through /api/v1/models/add carries a description. The app renders that description in chat without proper sanitizing, so HTML and script placed in it run in the browser of anyone who sees the model.

The advisory rates the privileges required as high, so the attacker needs a role that can add models. That is the main limit. A viewer, including an administrator, must open the chat that shows the description, so user interaction is required. The script runs in the viewer's session and can act as that user. With an administrator as the victim, the advisory says this could lead to arbitrary code execution. The score is 8.4 (CVSS 3.0, scope changed).

Who is affected

The pip package open-webui, version 0.3.8 and earlier. Instances where several people can create or edit models are most exposed. Check:

pip show open-webui

For Docker, check the image tag.

open-webui

Ecosystem
PyPI
Affected
<= 0.3.8
Fixed in
No patched version yet
Check
pip show open-webui

How to fix it

The advisory lists no patched version. Move to a newer Open WebUI release and read its notes. Until then, limit model creation to trusted administrators, and review existing model descriptions for HTML or script tags.

How to tell if you were hit

Review the model list for descriptions that contain angle brackets, script tags or event handlers such as onerror. Check logs for POST requests to /api/v1/models/add from accounts that should not create models, and for unexpected actions by administrators after they open chats.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Questions

Which field carries the payload in CVE-2024-7990?

The model description field, sent to /api/v1/models/add and rendered in chat without proper sanitizing.

Who can exploit it?

Someone who can add models, since the advisory rates the required privileges as high. A viewer must then open the chat that shows the description.

Is a patched version listed?

No. The advisory marks 0.3.8 and earlier as affected and lists no fixed release.

Can it reach administrators?

Yes. The advisory says any user, including administrators, can run the script, which could lead to arbitrary code execution.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries