AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2024-7053: Open WebUI Vulnerable to a Session Fixation Attack

highCVSS 3.0 7.6GHSA-43g4-487m-5q6m

Open WebUI 0.3.8 and earlier sets its session cookie with the default SameSite=Lax and no Secure flag. A user-level account can plant a markdown image in a chat that sends an administrator's cookie to the attacker's server when the admin views it. The advisory lists no patched version.

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

What an attacker can do

The session cookie for all users has no Secure flag and uses SameSite=Lax. It can therefore travel over plain HTTP to another origin. An attacker with a normal account posts a markdown image in a chat. The image URL points at a server the attacker controls over HTTP. When an administrator opens the chat, the browser requests the image and sends the admin's session cookie with it.

The attacker then holds the admin session, which is a quiet account takeover. Admin accounts can change settings and, per the advisory, this could lead to remote code execution through those elevated privileges. The attacker needs an account and an admin who views the chat, so user interaction is required (CVSS 3.0 of 7.6). The advisory file classifies the weakness as XSS (CWE-79).

Who is affected

The pip package open-webui, version 0.3.8 and earlier, on instances where users other than the admin can post chats. Check:

pip show open-webui

Also check in the browser's developer tools whether your session cookie shows the Secure flag.

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. Serve the instance only over HTTPS and check that the session cookie then carries the Secure flag. Limit who can register. Admins should avoid opening chats from unknown users until you have upgraded.

How to tell if you were hit

Look in web server and proxy logs for image requests from admins' browsers to external HTTP hosts, and in chat content for markdown images with external URLs. Check admin activity for logins or setting changes from unfamiliar addresses.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A vulnerability in open-webui/open-webui version 0.3.8 allows an attacker with a user-level account to perform a session fixation attack. The session cookie for all users is set with the default SameSite=Lax and does not have the Secure flag enabled, allowing the session cookie to be sent over HTTP to a cross-origin domain. An attacker can exploit this by embedding a malicious markdown image in a chat, which, when viewed by an administrator, sends the admin's session cookie to the attacker's server. This can lead to a stealthy administrator account takeover, potentially resulting in remote code execution (RCE) due to the elevated privileges of administrator accounts.

Questions

What makes the cookie leak possible in CVE-2024-7053?

The session cookie uses the default SameSite=Lax and has no Secure flag, so it can be sent over HTTP to a cross-origin domain.

Is there a fixed version?

The advisory lists none. It marks 0.3.8 and earlier as affected.

Does the admin need to click anything?

The admin must view the chat that holds the malicious markdown image. The browser loads the image on its own.

What can the attacker do with the cookie?

Take over the administrator account. The advisory says this could lead to remote 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