GHSA-6xcp-7mpr-m7wm: Open WebUI has a CORS misconfiguration and session validation issue
- Identifier
- GHSA-6xcp-7mpr-m7wm
- Published
- Record updated
- Affected
- open-webui < 0.3.33
- Fixed in
- 0.3.33
- released October 24, 2024, 564 days before disclosure
Summary
Open WebUI has CORS misconfigurations on multiple routers, including backend/main.py and several backend/apps/*/main.py files, that use allow_origins=["*"] with allow_credentials=True. Because of this, arbitrary websites can make authenticated cross-site requests to the instance, and an admin account that visits an attacker page can reach the /api/v1/functions endpoint to run arbitrary code on the Open WebUI host. The report tested v0.3.10 and notes that the application runs as root in the default Docker container setup, which can allow full compromise of the container.
Mitigation
Remove the broad origin ("*") from the CORS middleware and let administrators set the exact allowed origins through the administration panel or a config file; do not allow broad origins such as "*" or "*.com".
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- open-webuiPyPILLM dependency since 2024-05-20
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online