Medium

Open WebUI Has Stored Cross-Site Scripting in SVG Renderer

  • Disclosed: 14.05.2026
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package open-webui < 0.6.31 0.6.31

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-80
Platform
npm
Package
open-webui
Disclosed
14.05.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-r29h-37fj-x2w6 - CC BY 4.0

Vulnerability history: open-webui

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (10) in the archive
Total entries
10
First → latest
03.2025 05.2026
Without a fix
3
Exploited in attacks
0

Severity breakdown

  • High 9
  • Medium 1

Disclosures per year

  1. 2025: 6
  2. 2026: 4
Severity:
  1. Open WebUI Has Stored Cross-Site Scripting in SVG Renderer this entry
    Medium CVE-2026-45346 < 0.6.31 0.6.31
  2. High · 7.3 CVE-2026-44721 < 0.9.0 0.9.0
  3. High · 8.7 CVE-2025-65959 < 0.6.37 0.6.37
  4. High · 7.5 CVE-2024-12534 <= 0.3.32 no fix
  5. High · 7.5 CVE-2024-12537 <= 0.3.32 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.