GitHub Advisoryadvisory · npm

GHSA-r29h-37fj-x2w6 Open WebUI Has Stored Cross-Site Scripting in SVG Renderer

MEDIUM Published 2026-05-14 Modified 2026-05-19 Official page ↗
Aliases
CVE-2026-45346
Ecosystem
npm
Packages
open-webui
Severity
Moderate
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
Weaknesses
CWE-80
Reviewed
2026-05-14

Affected packages

• npm open-webui: < 0.6.31 → fixed in 0.6.31

Description

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 `` 6. The whole code should look like this: ``` ok ``` 7. 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.

Related

Alias · CVE (1)

  • CVE-2026-45346 Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. vulnerability

Weakness · CWE (1)

  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page weakness

References