NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-7044: Open WebUI Vulnerable to Cross-Site Scripting (XSS) via Chat File Upload

mediumCVSS 3.0 6.8GHSA-j274-m559-cj4j

Open WebUI 0.3.8 and earlier has a stored cross-site scripting flaw in chat file upload. An attacker plants script in an uploaded file, and it runs in the browser of any user who opens the file by URL or through a shared chat. The advisory lists no patched version.

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

What an attacker can do

Open WebUI accepts file uploads in chat and serves them back. The advisory says content injected into such a file executes as JavaScript in the victim's browser when the victim opens it through a direct URL or a shared chat. The sources do not name the exact upload route or the file types involved.

The attacker needs a low-privilege account that can upload and a victim who opens the link. The scope is changed, which means the script runs in the context of the Open WebUI origin. That origin holds the victim's session token, chat history and, for an admin, the controls for models, users and connections.

The advisory lists user data theft, session hijacking, malware distribution and phishing. A hit on an admin session is the worst case, because it gives the attacker the same rights on your instance. Shared-chat links make delivery easy.

Who is affected

open-webui (pip) version 0.3.8 and earlier. No later release is named as fixed in the advisory. Check your version:

pip show open-webui

For Docker installs, check the image tag or the version in the Open WebUI settings About page. Any deployment where more than one person can upload files or share chats is exposed.

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, and no workaround is given. Check the Open WebUI release notes for a newer release than 0.3.8 and upgrade to the latest.

Until you do, limit who can sign up and upload files, turn off chat sharing if you do not need it, and tell users not to open uploaded-file or shared-chat links from people they do not trust.

How to tell if you were hit

Look in the uploads directory of your Open WebUI data volume for HTML or SVG files, or files with script tags, that you did not expect. Review web server logs for requests to uploaded-file URLs from other users soon after a shared-chat link was sent. Check for unexpected new admin accounts, changed model or connection settings, and sessions from unfamiliar IP addresses.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui version 0.3.8. An attacker can inject malicious content into a file, which, when accessed by a victim through a URL or shared chat, executes JavaScript in the victim's browser. This can lead to user data theft, session hijacking, malware distribution, and phishing attacks.

Questions

Is there a fixed version for CVE-2024-7044?

The advisory lists none. It reports versions up to 0.3.8 as affected and names no patched release. Check the project's release notes and move to the newest version.

Does the attack need user interaction?

Yes. The victim must open the malicious file through its URL or via a shared chat. The attacker also needs an account that can upload files.

Is it exploited in the wild?

No source reports exploitation, and it is not in the CISA Known Exploited Vulnerabilities catalog.

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