{"id":"CVE-2026-54011","published":"2026-06-23T16:47:43Z","modified":"2026-06-23T17:55:33Z","title":"Open WebUI: Stored XSS in Mermaid Markdown Preview","vendor":"open-webui","product":"open-webui","tier":"tail","description":{"text":"Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.6,Open WebUI renders Mermaid blocks from Markdown files in the file preview panel and inserts the generated SVG into the DOM using innerHTML. Because Mermaid is configured with securityLevel: 'loose', attacker-controlled Mermaid content can be rendered unsafely in this flow. A working payload was validated through the Markdown preview path, resulting in JavaScript execution in the victim’s browser under the application origin.  This vulnerability is fixed in 0.9.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.19472,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/open-webui/open-webui/security/advisories/GHSA-v8qj-hxv7-mgvv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":3.89},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"open-webui","affectedVersions":[{"vendor":"open-webui","product":"open-webui","versions":["< 0.9.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-23T17:55:29.817663Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"open-webui","vulnerableRanges":["<0.9.6"],"patched":["0.9.6"],"from":["GHSA-v8qj-hxv7-mgvv","PYSEC-2026-2759"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in Open WebUI's file preview panel affects its Markdown preview path, where Mermaid diagram blocks are rendered and inserted into the page via innerHTML because Mermaid runs in a loose security configuration. An attacker who can supply Markdown content with a crafted Mermaid block can get JavaScript to run in a victim's browser under the application's origin, which requires the attacker to have low-privileged access and the victim to open or interact with the malicious file preview.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:10Z"},"euvd":{"id":"EUVD-2026-38531","exploited":false,"provenance":"source"}}