Skip to content
HighVulnerability

GHSA-6xcp-7mpr-m7wm: Open WebUI has a CORS misconfiguration and session validation issue

Published
Record updated
View JSON
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".