Skip to main content

Open WebUI CVE-2026-70486

| EUVDEUVD-2026-52893 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-04 GitHub_M GHSA-3xpf-xq7r-v8c5
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker writes malicious HTML to terminal server
  2. Delivery
    Prompt injection triggers automatic display_file tool call
  3. Exploit
    Victim's browser loads HTML at application origin
  4. Install
    Script executes with allow-same-origin and allow-scripts in parent context
  5. C2
    Script reads session token from localStorage
  6. Execute
    Token exfiltrated to attacker-controlled endpoint
  7. Impact
    Stolen 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 TERMINAL_SERVER_CONNECTIONS environment variable, which is empty by default - deployments with no terminal server configured are completely unaffected regardless of version. The attacker must hold a valid authenticated account on the Open WebUI instance with access to that configured terminal server; no admin rights are required for the attacker. A multi-step delivery mechanism is required to get the malicious HTML file displayed in the victim's browser: either a prompt-injection attack that injects a display_file tool call into the chat context, or social engineering to have the victim navigate to the preview. Exploitation is further blocked in deployments where TERMINAL_PROXY_HEADERS has been used to inject a restrictive Content-Security-Policy, as those headers are applied to all proxied responses. The srcdoc preview path and all deployments without terminal server configuration are not affected by this vulnerability.

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 workspace.functions, further limiting blast radius. No EPSS data was provided and this CVE is absent from the CISA KEV catalog, suggesting no observed in-the-wild exploitation at time of analysis. The most important real-world limiting factor is that TERMINAL_SERVER_CONNECTIONS is empty by default, meaning the majority of Open WebUI deployments - particularly quick-start and hobbyist instances - are not exploitable at all. For enterprises or teams that have terminal servers configured, priority should be elevated due to the potential for privilege escalation to RCE.

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 display_file tool call in the victim's active chat session. The iframe opens the HTML file at the application's own origin with allow-scripts and allow-same-origin, causing the script to execute with full access to the parent window - it reads the victim's session token from localStorage and exfiltrates it to an attacker-controlled server. If the victim is an admin, the stolen token is used to install a malicious workspace function that executes arbitrary commands server-side on the Open WebUI host.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

open-webui 0.9.0, < 0.11.0

Affected Packages

pypi open-webui fix: 0.11.0

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

Vendor (GitHub_M) PRIMARY HIGH
NVD 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 8.2 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
Severity Changed
Sep 18, 2026 - 14:52 NVD
HIGH MEDIUM
CVSS changed
Sep 18, 2026 - 14:52 NVD
8.2 (HIGH) 5.4 (MEDIUM)
Patch available
Aug 04, 2026 - 21:01 EUVD
CVE Published
Aug 04, 2026 - 20:01 cve.org
HIGH 8.2

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular self-hosted AI frontend, growing but not enterprise-ubiquitous
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2024-8017 CRITICAL POC
9.0 Mar 20

An XSS vulnerability exists in open-webui/open-webui versions <= 0.3.8, specifically in the function that constructs the

CVE-2024-7044 HIGH POC
8.9 Mar 20

A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui

CVE-2024-6707 HIGH POC
8.8 Aug 07

Attacker controlled files can be uploaded to arbitrary locations on the web server's filesystem by abusing a path traver

CVE-2026-87995 HIGH POC
8.7 Sep 09

Stored cross-site scripting in Open WebUI's terminal port preview feature allows an authenticated attacker sharing a ter

CVE-2024-8053 HIGH POC
8.2 Mar 20

In version v0.3.10 of open-webui/open-webui, the `api/v1/utils/pdf` endpoint lacks authentication mechanisms, allowing u

CVE-2026-87016 HIGH POC
8.1 Sep 09

OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re

CVE-2026-87996 HIGH POC
7.7 Sep 09

DNS rebinding SSRF in Open WebUI versions 0.9.6 through 0.11.0 allows authenticated users who control authoritative DNS

CVE-2026-87011 HIGH POC
7.5 Sep 09

Denial of service in Open WebUI versions 0.9.0-0.11.0 allows unauthenticated remote attackers to stall the application s

CVE-2024-7983 HIGH POC
7.5 Mar 20

In version 0.3.8 of open-webui, an endpoint for converting markdown to HTML is exposed without authentication. Rated hig

CVE-2026-26193 HIGH POC
7.3 Feb 19

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. [CVSS 7.3 HIGH]

CVE-2026-26192 HIGH POC
7.3 Feb 19

Stored XSS in Open WebUI prior to version 0.7.0 allows authenticated users to inject malicious HTML payloads into chat d

CVE-2026-87998 HIGH POC
7.1 Sep 09

Improper privilege management in Open WebUI 0.10.0 through 0.11.0 allows any authenticated low-privilege user with write

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy