Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker writes malicious HTML to terminal server
-
DeliveryPrompt injection triggers automatic display_file tool call
-
ExploitVictim's browser loads HTML at application origin
-
InstallScript executes with allow-same-origin and allow-scripts in parent context
-
C2Script reads session token from localStorage
-
ExecuteToken exfiltrated to attacker-controlled endpoint
-
ImpactStolen token used for account takeover or admin RCE via workspace functions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | At least one terminal server must be configured by an administrator via the |
| Impact | The CVSS 3.1 vector AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N (8.2) accurately reflects the attack's real-world constraints. AC:H is well-justified: delivering and triggering display of a malicious HTML file requires prompt injection or social engineering against the victim, making this a multi-step attack rather than direct exploitation. PR:L correctly reflects that the attacker needs a valid authenticated account with terminal server access, but no admin privileges. The Scope:Changed metric is critical - the attacker's confined session escapes into the victim's application origin, which is the core of the vulnerability. The highest-severity outcome (server-side RCE via workspace functions) is conditional on the victim being an admin or holding |
| Exploit ScenarioDerived | An attacker with a valid Open WebUI account and access to a configured terminal server writes a malicious HTML file containing JavaScript to the terminal server filesystem, then crafts a prompt injection that triggers an automatic |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
The terminal file-preview feature in Open WebUI 0.9.0 through 0.10.2 allows an authenticated attacker with access to a configured terminal server to execute arbitrary scripts in the application's own browser origin by exploiting a hardcoded iframe sandbox misconfiguration, enabling full session token theft and account takeover. The serveUrl iframe branch unconditionally combined allow-same-origin with allow-scripts for HTML files served from the application's own domain, completely negating iframe sandbox isolation regardless of user settings. In the highest-impact scenario, if the victim holds admin privileges or workspace.functions, the account takeover extends to server-side code execution on the Open WebUI host. No public exploit has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog; a vendor patch is available in version 0.11.0.
RemediationAI
Upgrade Open WebUI to version 0.11.0 or later via pip install --upgrade open-webui, available at https://github.com/open-webui/open-webui/releases/tag/v0.11.0. No configuration changes are required after upgrading; HTML previews continue to render correctly. The fix in commit 65a5fad7b (PR #26907) removes the hardcoded allow-same-origin from the serveUrl iframe branch and gates it behind the iframeSandboxAllowSameOrigin user setting, which defaults to off - restoring the originally intended isolation behavior. For deployments that cannot upgrade immediately, completely removing all entries from TERMINAL_SERVER_CONNECTIONS eliminates the attack surface entirely, though this disables all terminal functionality as a trade-off. Operators who had already set a restrictive Content-Security-Policy via TERMINAL_PROXY_HEADERS were not exposed even on vulnerable versions, since those headers are merged into every proxied response including served HTML files.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is in src/lib/components/chat/FileNav/FilePreview.svelte within the serveUrl iframe branch that renders HTML files served through the terminal proxy endpoint /api/v1/terminals/{id}/files/serve/.... The HTML5 iframe sandbox attribute is designed to restrict framed content, but the documented pitfall of combining allow-same-origin with allow-scripts for same-origin content is that the framed document inherits the parent's origin context, gains DOM access, and can read localStorage and sessionStorage - rendering the sandbox entirely inert. CWE-79 (Improper Neutralization of Input During Web Page Generation) captures this: attacker-controlled HTML content is injected into the application's own origin context without sanitization or effective isolation. Compounding the issue, the existing user setting iframeSandboxAllowSameOrigin (default: off) was intended to gate this behavior but was silently ignored by the serveUrl code path; only the srcdoc branch respected it. The affected CPE is cpe:2.3:a:open-webui:open-webui:*:*:*:*:*:*:*:*, versions 0.9.0 through 0.10.2 inclusive.
Know when Open Webui gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Network vector confirmed; AC:H reflects mandatory prompt-injection delivery step; PR:L for attacker's authenticated account; S:C because iframe escapes to application origin.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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.
Executive ViewAI
Open WebUI versions 0.9.0 through 0.10.2 expose authenticated users to session hijacking and account takeover via a terminal file-preview vulnerability; compromise of administrator accounts creates additional risk of server-side code execution and full infrastructure takeover.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Open Webui
View allAn XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui
Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver
Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter
In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS
Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s
In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]
Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d
Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write
EUVD-2026-52893
GHSA-3xpf-xq7r-v8c5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB