Description
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.
Published: 2026-08-04
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An authenticated user with access to a terminal server can serve an HTML file that, due to the terminal file-preview iframe being hard‑coded with allow‑same‑origin and allow‑scripts, runs in the Open WebUI origin. The embedded script can read the victim's session token from localStorage, enabling account takeover, and, if the victim holds admin privileges or workspace.functions, may allow server‑side code execution. This vulnerability is a Same‑Origin Cross‑Site Scripting and is identified as CWE‑79 and CWE‑1021.

Affected Systems

The vulnerability is present in open-webui:open-webui in versions 0.9.0 through 0.10.x, which are included in the 0.11.0 release. Any deployment of Open WebUI with the terminal file-preview functionality enabled and an authenticated user able to inject an HTML file into the preview is affected. The issue was fixed in release 0.11.0.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV. Attackers can exploit the flaw by uploading a malicious HTML file to a terminal session they have access to; because the iframe runs with same‑origin privileges, the attacker’s script gains the victim’s browser context. If the victim is an admin or has workspace.functions, the exploit can lead to server‑side code execution, making this a potentially critical risk for hosted deployments.

Generated by OpenCVE AI on August 4, 2026 at 21:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Open WebUI version 0.11.0 or later where the iframe hard‑coding is removed and the issue is fixed.
  • If an upgrade cannot be performed immediately, disable the terminal file-preview feature or remove the allow‑same‑origin and allow‑scripts attributes from the file‑preview iframe for any terminal sessions.
  • Restrict terminal server access to trusted users only and audit authenticated sessions for suspicious file uploads.
  • Implement CSP headers that forbid script execution from unexpected origins to mitigate the impact of potential script injection.

Generated by OpenCVE AI on August 4, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3xpf-xq7r-v8c5 Open WebUI: Same-origin XSS to account takeover via terminal file-preview iframe hardcoding allow-same-origin
History

Tue, 04 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Open-webui
Open-webui open-webui
Vendors & Products Open-webui
Open-webui open-webui

Tue, 04 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Open WebUI: Same-origin XSS to account takeover via terminal file-preview iframe hardcoding allow-same-origin
Weaknesses CWE-1021
CWE-79
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N'}


Subscriptions

Open-webui Open-webui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-04T20:01:55.319Z

Reserved: 2026-08-04T15:24:41.340Z

Link: CVE-2026-70486

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T21:45:04Z

Weaknesses
  • CWE-1021

    Improper Restriction of Rendered UI Layers or Frames

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')