Open-WebUI allows remote code execution through CORS bypass and admin session reuse
What this means
An attacker can trick an admin user into clicking a link on a malicious website. The attacker gains the ability to run any code on the Open-WebUI instance. Since Open-WebUI often runs as root in Docker, the attacker controls the entire container and can read all data, modify models, or use it to attack other systems.
SecurityElites Manager Brief: the decision in one minute
Open-WebUI has a flaw that lets attackers run code on your server if an admin user visits a malicious website. This is a one-click attack that can give an attacker full control. You must upgrade immediately.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Infrastructure or DevOps team, with security team oversight. |
| Likely effort | About 15 minutes per instance: download version 0.3.33, restart the container, and verify the version. Longer if you run many instances or need to test in a staging environment first. |
Questions to ask your team or supplier
- Do we know the current version of every Open-WebUI instance we run, and have we confirmed they are all before 0.3.33?
- Have any admin users received suspicious emails or messages asking them to click links while they were logged in to Open-WebUI?
- Do we have logs going back far enough to detect if this flaw was exploited before we patch it, and have we checked them?
Message you can forward to the owning team
Security notice: Open-WebUI allows remote code execution through CORS bypass and admin session reuse (CVE-2026-56400)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to open-webui 0.3.33 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-56400-open-webui-allows-remote-code-execution-through-cors-bypass-and/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00847What is at stake in your AI setup
- Custom functions and models uploaded by admins: an attacker can inject malicious code into these or replace them entirely
- Connected tools and system integrations: if Open-WebUI has access to APIs, databases, or cloud services, an attacker can abuse those connections
- LLM API keys and secrets: an attacker can steal credentials used to call external language models and use them to run up bills or access restricted models
Who is exposed
- Any team running Open-WebUI version earlier than 0.3.33
- Setups where admin users access Open-WebUI from web browsers
- Docker containers running Open-WebUI with default permissions
- Organizations where admins visit untrusted websites while logged in
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| open-webui PyPI | Every version before 0.3.33 | 0.3.33 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | Yes. Someone has to click, open or approve something |
| How hard it is to do | Hard. It depends on conditions the attacker does not control |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Kind of coding mistake
- CWE-613
If you cannot upgrade today
- Restrict admin access: limit the number of users with admin role and require them to use Open-WebUI only from trusted networks or VPNs
- Warn admins: tell all admin users not to click links from untrusted websites while logged in to Open-WebUI, and to log out when finished
- Network isolation: run Open-WebUI on an internal network with no direct internet access; require a VPN to reach it
Signs it may already have been used against you
- Look in application and web server logs for POST or PUT requests to `/api/v1/functions` from admin accounts at times when no admin was working
- Search logs for requests to `/api/v1/functions` that came from web browsers on different domains (look for `Referer` or `Origin` headers that do not match your domain)
- Check for new or modified functions, scripts, or models in Open-WebUI that were created at unexpected times or by unexpected admins
- Look for failed CORS preflight requests (HTTP 403 or 405 to `OPTIONS /api/v1/functions`) followed by suspicious POST requests, which may indicate attack attempts
SecurityElites Fix Guide: step by step
- Find where Open-WebUI is runningCheck all servers, containers, and virtual machines where Open-WebUI is deployed. Note the current version number for each instance. You can find the version in the UI settings or by running `pip show open-webui`.
- Back up data and configurationExport or snapshot the Open-WebUI configuration, database, and any uploaded models or files. This protects your setup if something goes wrong during the upgrade.
- Upgrade to version 0.3.33Update the installed package to version 0.3.33 or later using your package manager. For Docker, rebuild the image with the new version. For pip installs, run the upgrade command appropriate to your setup.
- Restart Open-WebUIStop the running Open-WebUI service and start it again with the new version. Wait for it to fully start up and all services to be ready.
- Verify the upgrade was successfulCheck that the running version is now 0.3.33 or later. You can confirm this in the UI settings or by running `pip show open-webui` and checking the version line.
- Review access logs for signs of exploitationLook at web server and application logs from before the upgrade for unusual admin API calls, especially to `/api/v1/functions`. Check for requests from unexpected sources or times.
- Reset admin sessions and credentialsForce all admin users to log out and log back in. Have admins change their passwords. This clears any sessions an attacker may have reused.
- Review recent admin activity in the applicationCheck for any functions, models, or settings that were added or modified by admins when they should not have been. Look for unexpected code in custom functions or models.
How to confirm it is fixed: Confirm that the running Open-WebUI version is 0.3.33 or later by checking the version in the UI settings or by running `pip show open-webui` and verifying the version line shows 0.3.33 or higher.
SecurityElites Quick Fixes: copy and paste
Upgrade open-webui with pipupgrade
pip install --upgrade "open-webui>=0.3.33"
pip show open-webui | grep VersionPin it in requirements.txtupgrade
open-webui>=0.3.33Check installed version of open-webuifor this issue
pip show open-webui | grep VersionCheck version inside a Docker containerfor this issue
docker exec <container_name> pip show open-webui | grep VersionRun the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-56400) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - open-webui (PyPI): must be 0.3.33 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Open-WebUI allows remote code execution through CORS bypass and admin session reuse (CVE-2026-56400)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-00847 https://securityelites.com/ai-vulnerabilities/cve-2026-56400-open-webui-allows-remote-code-execution-through-cors-bypass-and/
### Why this matters
An attacker can trick an admin user into clicking a link on a malicious website. The attacker gains the ability to run any code on the Open-WebUI instance. Since Open-WebUI often runs as root in Docker, the attacker controls the entire container and can read all data, modify models, or use it to attack other systems.
### What to do
1. Find where Open-WebUI is running
2. Back up data and configuration
3. Upgrade to version 0.3.33
4. Restart Open-WebUI
5. Verify the upgrade was successful
6. Review access logs for signs of exploitation
7. Reset admin sessions and credentials
8. Review recent admin activity in the application
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-56400-open-webui-allows-remote-code-execution-through-cors-bypass-and/
### Done when
- [ ] open-webui is at 0.3.33 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that the running Open-WebUI version is 0.3.33 or later by checking the version in the UI settings or by running `pip show open-webui` and verifying the version line shows 0.3.33 or higher.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Open WebUI profile images can run scripts in browser with attacker control High · CVE-2026-56398
- Open-WebUI processes file uploads without checking who is uploading High · GHSA-5ccf-884p-4jjq
- Open WebUI can be made unavailable by uploading a malformed file High · GHSA-6wj5-5pgr-jwq8
- Open-WebUI uses Starlette that can be starved of memory and go offline High · GHSA-w466-2wfc-8g58
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
Change history
- 11 May 2026: Made public
- 1 Dec 2026: Published
- 3 Dec 2026: Guide updated
Official record
# GitHub Security Lab (GHSL) Vulnerability Report, open-webui: `GHSL-2024-174`, `GHSL-2024-175`The [GitHub Security Lab](https://securitylab.github.com) team has identified potential security vulnerabilities in [open-webui](https://github.com/open-webui/open-webui).We are committed to working with you to help resolve these issues. In this report you will find everything you need to effectively coordinate a resolution of these issues with the GHSL team.If at any point you have concerns or questions about this process, please do not hesitate to reach out to us at `securitylab@github.com` (please include `GHSL-2024-174` or `GHSL-2024-175` as a reference). See also [this blog post](https://github.blog/2022-04-22-removing-the-stigma-of-a-cve/) written by GitHub's Advisory Curation team which explains what CVEs and advisories are, why they are important to track vulnerabilities and keep downstream users informed, the CVE assigning process, and how they are used to keep open source software secure.If you are _NOT_ the correct point of contact for this report, please let us know!## SummaryDue to a CORS misconfiguration and session validation issue, an attacker may be able to perform a 1 click attack against browsers with admin access to openwebui, resulting in remote code execution in the openwebui instance. The openwebui application runs as root in Docker container's default setup, which allows for complete compromise of the container.## Projectopen-webui## Tested Version[v0.3.10](https://github.com/open-webui/open-webui/releases/tag/v0.3.10)## Details### Issue 1: CORS misconfiguration on multiple routers (`GHSL-2024-174`)CORS misconfigurations exist on multiple routers of open-webui which results in allowing arbitrary websites to make authenticated cross site requests to openwebui. Accounts with access to the `/api/v1/functions` endpoint (admins) can execute arbitrary code on the openwebui instance.The following pattern occurs at the following routers: 1. [backend/apps/webui/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/webui/main.py#L92) 2. [backend/apps/audio/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/audio/main.py#L58) 3. [backend/apps/images/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/images/main.py#L60) 4. [backend/apps/rag/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/rag/main.py#L246) 5. [backend/apps/openai/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/openai/main.py#L47) 6. [backend/apps/ollama/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/apps/ollama/main.py#L62) 7. [backend/main.py](https://github.com/open-webui/open-webui/blob/v0.3.10/backend/main.py#L881) ```python app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) ```#### ImpactThis issue may lead to `Remote Code Execution`.#### RemediationThe FastAPI CORS middleware is not safe by default, meaning it reflects the origin when specifying `allow_origins=["*"]`. Remove the vulnerable, broad origin and allow users to dynamically setup the exact allowed origins via the administration panel or config file, do not allow for broad origins such as `"*"` or `"*.com"`#### Proof of ConceptHost the following code on your website, `attacker.com`. Open the webpage using Firefox, and click on the webpage as instructed. Check your openwebui host to see the result of the command `whoami` placed into a newly created file `/tmp/whoami.txt`. Ensure you have logged into an admin open-webui account ```javascript <body> <p>Click here to login.</p> <div id="response"></div> <script> //Firefox cross site cookie request bypass const url = 'http://localhost:3000/static/favicon.png'; document.addEventListener("DOMContentLoaded", () => { document.o
Weakness type: CWE-613
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-56400For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 4 Dec 2026. Read the vendor advisory before changing a production system.