CVE-2026-45346: Open webui Cross-Site Scripting Vulnerability
MODERATECVE-2026-45346 is a MODERATE cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Open webui libraries in the npm ecosystem. The issue involves open webui has stored cross-site scripting in svg renderer. Remediation is available by upgrading affected packages to version 0.6.31.
CVE-2026-45346 at a Glance
How to Fix CVE-2026-45346
To remediate this vulnerability, upgrade all affected Open webui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install open-webui@0.6.31
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls open-webui
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-45346, inspect your project dependencies using npm:
npm ls open-webui
Analyze the terminal output to locate any version of Open webui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.31), your application is affected.
Note: The npm ls open-webui command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Open webui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45346 Affected Open webui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
open-webui
|
npm |
< 0.6.31
|
0.6.31
|
References
Frequently Asked Questions
What is CVE-2026-45346?
Which Open webui versions are affected?
What version fixes CVE-2026-45346?
Is open-webui affected?
What CWE is associated with CVE-2026-45346?
How can I check npm dependencies for CVE-2026-45346?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r29h-37fj-x2w6",
"modified" : "2026-05-19T15:59:41Z",
"published" : "2026-05-14T20:21:51Z",
"aliases" : [ "CVE-2026-45346" ],
"summary" : "Open WebUI Has Stored Cross-Site Scripting in SVG Renderer",
"details" : "### Summary\nThere is a Cross-Site Scripting vulnerability in Open WebUI SVG renderer implementation. \n\n### Details\n\nIt 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. \n\nDetailed 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/)]**\n\n### PoC\n\nSteps to reproduce:\n\nTo reproduce this vulnerability you need to:\n\n1. Login to Open WebUI \n2. Start new conversation / thread\n3. Use prompt: \"Hey. Can you draw me a green circle using SVG ?\"\n4. SVG image should be generated. \n5. 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)>`\n6. The whole code should look like this:\n\n```\n<svg width=\"100\" height=\"100\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"green\"/>\n</svg><img src=\"a\" onerror=\"alert(document.domain)\">ok</img>\n```\n\n<img width=\"1249\" alt=\"AI XSS1\" src=\"https://github.com/user-attachments/assets/75167880-79ac-4510-9743-f99bf81a215d\" />\n\n7. Now clicking \"Save\", the new image should get rendered, and malicious code - executed (by popping alert). \n\n<img width=\"527\" alt=\"AI XSS2\" src=\"https://github.com/user-attachments/assets/24d4e572-97f0-438f-993d-08e1d421b349\" />\n\nSuch thread could be then shared and sent to other users. \n\n### Impact\nCross-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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "open-webui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.31"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/open-webui/open-webui/security/advisories/GHSA-r29h-37fj-x2w6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45346"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/open-webui/open-webui"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-14T20:21:51Z",
"nvd_published_at" : "2026-05-15T22:16:55Z"
}
}