CVE-2026-45346: Open webui Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-r29h-37fj-x2w6
CWE-80
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-45346
GHSA Identifier GHSA-r29h-37fj-x2w6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Open webui
Package Ecosystem npm
Published Date
Last Updated

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.

open-webui fixed: 0.6.31
npm install open-webui@0.6.31
Verify Direct and Transitive Dependencies

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

### 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: 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" /> 7. 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.

CVE-2026-45346 Affected Open webui Versions

1 component(s)
Fixed Versions:
0.6.31
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?
CVE-2026-45346 is a security vulnerability in Open webui involving Open WebUI Has Stored Cross-Site Scripting in SVG Renderer under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Open webui versions are affected?
Affected versions include releases prior to 0.6.31 across affected packages: open-webui.
What version fixes CVE-2026-45346?
Upgrading to 0.6.31 (or the latest patched release for your respective branch) resolves the vulnerability.
Is open-webui affected?
Yes, open-webui is affected in releases prior to 0.6.31. Upgrade your dependency to 0.6.31 or later.
What CWE is associated with CVE-2026-45346?
CVE-2026-45346 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (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.).
How can I check npm dependencies for CVE-2026-45346?
Run the dependency tree command: 'npm ls open-webui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}