CVE-2026-45346: Open WebUI Has Stored Cross-Site Scripting in SVG Renderer
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.
Published May 14, 2026 · Updated May 19, 2026
Affected packages
open-webui
- Ecosystem
- npm
- Affected
- < 0.6.31
- Fixed in
- 0.6.31
- Check
npm ls open-webui
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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](https://www.securitum.com/)]
PoC
Steps to reproduce:
To reproduce this vulnerability you need to:
- Login to Open WebUI
- Start new conversation / thread
- Use prompt: "Hey. Can you draw me a green circle using SVG ?"
- SVG image should be generated.
- Now it's possible to edit the code by simply clicking on it and adding additional code. Add payload ``
- 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>ok- Now clicking "Save", the new image should get rendered, and malicious code - executed (by popping alert).
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.
Credited to ZoczuS.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-45395
Open WebUI: Missing `workspace.tools` Authorization Check on Tool Update Endpoint Allows Privilege Escalation to Code Execution
high7.2May 14, 2026CVE-2026-45665
Open WebUI has Stored XSS in Banner Component via Improper Sanitization Order
high8.1May 14, 2026CVE-2026-44721
open-webui Vulnerable to Stored XSS via Model Description
high7.3May 8, 2026CVE-2025-65959
Open WebUI Vulnerable to Stored DOM XSS via Note 'Download PDF'
high8.7Dec 4, 2025CVE-2025-64495
Open WebUI vulnerable to Stored DOM XSS via prompts when 'Insert Prompt as Rich Text' is enabled resulting in ATO/RCE
high8.7Nov 7, 2025CVE-2025-64496
Open WebUI Affected by an External Model Server (Direct Connections) Code Injection via SSE Events
high7.3Nov 7, 2025
