Open-webui
Open WebUI: Same-origin XSS to account takeover via terminal file-preview iframe hardcoding allow-same-origin
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.9.0 until 0.11.0, the terminal file-preview serveUrl iframe branch always granted allow-same-origin together with allow-scripts for HTML files served from the application origin. Any authenticated user with access to a configured terminal server could cause script in a previewed file to run in the Open WebUI origin, read the victim's session token from localStorage, and take over the account, with possible server-side code execution if the victim was an admin or held workspace.functions. This issue is fixed in 0.11.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.9.0, < 0.11.0
Fixed in 0.11.0
Mitigation
Upgrade open-webui to 0.11.0 or later.
References
- Vendor advisory github.com/open-webui/open-webui/security/advi…
- Patch github.com/open-webui/open-webui/pull/26907
- Patch github.com/open-webui/open-webui/commit/65a5fa…
1 more
- Release notes github.com/open-webui/open-webui/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.