CVE-2026-54007: Open WebUI: Cross-origin postMessage confirmation bypass via action:submit
Open WebUI's chat page accepts cross-origin postMessage events that set the prompt and submit it without the confirmation dialog. A web page the victim visits can make their logged-in session run attacker-written prompts, including tool and code execution. Open WebUI 0.9.5 and earlier is affected. Upgrade to 0.9.6.
Published Jun 17, 2026 · Updated Aug 13, 2026 · Analysis Oct 26, 2026
What an attacker can do
The window message listener in src/lib/components/chat/Chat.svelte handles input:prompt and action:submit messages without an origin allowlist. A cross-origin input:prompt:submit message already triggers a "Confirm Prompt from Embed" dialog. By sending input:prompt first and action:submit second, an external page gets the same result with no dialog.
The researcher's proof of concept is a page that opens the Open WebUI instance in a new window on a click, waits, then posts the two messages. The injected prompt runs, and the browser sends POST /api/v1/chats/new and POST /api/chat/completions under the victim's session.
The victim must be logged in and must visit the attacker's page and click once. The attacker needs no account. The advisory says the prompt can drive model features such as the code interpreter, web search, retrieval and terminal or tool servers, all with the victim's privileges. The CVSS scores rate integrity impact high.
Who is affected
The open-webui pip package, version 0.9.5 and earlier. Any instance where users stay logged in to a browser that can visit untrusted pages is exposed, and the risk is higher when code interpreter or tool servers are enabled. Check the version:
pip show open-webuiThe version also shows in the Open WebUI interface under About.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.9.5
- Fixed in
- 0.9.6
- Check
pip show open-webui
How to fix it
Upgrade to Open WebUI 0.9.6:
pip install --upgrade open-webui==0.9.6Docker users should pull an image tagged 0.9.6 or later. The advisory lists no workarounds. Until you upgrade, restrict code interpreter and tool server access for users who browse untrusted sites, and ask users to log out of the instance when they are not using it.
How to tell if you were hit
Review chat history for conversations the user did not start, particularly prompts created within seconds of each other with no typing activity. Check reverse-proxy logs for POST /api/v1/chats/new followed immediately by POST /api/chat/completions with a Referer or Origin that does not match your instance. Check tool, code interpreter and web search usage around the same times for actions the user did not request.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The chat message listener allows non-same-origin input:prompt and action:submit messages, so an external site can set prompt text and trigger submitPrompt() in an authenticated victim session. I validated this with a cross-origin attacker page that auto-posted messages and caused unauthorized POST /api/v1/chats/new and POST /api/chat/completions requests containing attacker-controlled prompts. This enables cross-site forced actions and model/tool execution under victim privileges without consent.
Details
The chat page's window message listener in src/lib/components/chat/Chat.svelte processes message types including input:prompt and action:submit without adequately enforcing same-origin restrictions. Based on code around lines ~597-616, input text is set directly from event.data.text; action:submit proceeds to submitPrompt() on the current prompt. The logic does not apply a strict origin allowlist and permits non-same-origin control of the chat input and submission flow, leading to cross-origin command execution in the victim's authenticated UI context. As a result, backend API calls (e.g., POST /api/v1/chats/new, POST /api/chat/completions) are sent under victim credentials.
Normally, via the input:prompt:submit postMessage type, this results in a "Confirm Prompt from Embed" confirmation dialog:
https://github.com/open-webui/open-webui/blob/9bd84258d09eefe7bf975878fb0e31a5dadfe0f8/src/lib/components/chat/Chat.svelte#L604-L622
However, combining the two other types, it is possible to achieve the same effect without this confirmation:
https://github.com/open-webui/open-webui/blob/9bd84258d09eefe7bf975878fb0e31a5dadfe0f8/src/lib/components/chat/Chat.svelte#L584-L602
PoC
- Set up a local Open WebUI instance and log in to it, making sure a model is configured
- Host the following HTML anywhere and visit it (optionally change http://127.0.0.1:14000 to your instance Base URL):
<h1>Click anywhere</h1>
<script>
function sleep(ms) {
return new Promise(r => setTimeout(r, ms));
}
onclick = async () => {
w = window.open('http://127.0.0.1:14000');
await sleep(2000);
w.postMessage({ type: 'input:prompt', text: "INJECTED PROMPT" }, '*');
await sleep(500);
w.postMessage({ type: 'action:submit' }, '*');
}
</script>- Click anywhere on the page, then notice without further interaction the "INJECTED PROMPT" is executed on the Open WebUI instance
Impact
Conditions required: The victim must be authenticated to Open WebUI in the browser (token cookie present).
This issue enables cross-site forced actions under the victim's identity. An attacker can silently inject prompts and trigger model/tool execution (e.g., code interpreter, web search, retrieval, terminal/tool servers) as the victim without confirmation.
Original Agent Report
Credited to Aikido-Security, JorianWoltjer, reindaelman, grumpinout1, Classic298.
Questions
- Does the victim have to click something?
Yes, they must visit the attacker's page and click once, which lets the page open the Open WebUI window. After that no further interaction is needed. They must also be logged in to Open WebUI.
- Is Open WebUI 0.9.6 vulnerable to CVE-2026-54007?
No. Versions up to and including 0.9.5 are affected, and 0.9.6 is the patched version.
- What can the attacker do?
Submit prompts as the victim. The advisory names code interpreter, web search, retrieval, and terminal or tool servers as reachable features. The attacker does not see the output directly.
References
Read for this analysis:
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 entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
