All vulnerabilities

Servers and applications

CVE-2026-54011

Stored XSS in Mermaid Markdown Preview

Severity
Medium 5.4
Published
11 Jun 2026
Last changed
25 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.9.6
Exploit chance
0.3% in the next 30 daysHigher than 27% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Also known as
GHSA-v8qj-hxv7-mgvv
Sources
NVD, Project advisories (GitHub)

Description

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 is a confirmed stored XSS vulnerability reachable through normal product functionality.

  • CWE-79: Improper Neutralization of Input During Web Page Generation

A successful exploit allows JavaScript execution in the victim’s browser under the Open WebUI origin when a malicious Markdown file is opened in the preview panel.

From open-webui/open-webui's security advisory.

Affected software

SoftwareAffected versions
Open WebUIServers and applications · cpe:a:openwebui:open_webui
  • Every version before 0.9.6
Open WebUIServers and applications · github:open-webui/open-webui
  • Every version before 0.9.6

About Open WebUI

self-hosted user interface for artificial intelligence models

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
355,496PyPI Stats, 15 Nov 2026
Docker Hub pulls
990,663Docker Hub, 15 Nov 2026
GitHub stars
158,684GitHub, 15 Nov 2026
Forks
23,075GitHub, 15 Nov 2026
Latest release
v0.13.3GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
multi-licensingWikidata
First published on GitHub
6 Oct 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-54011
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54011
  • GitHub Advisory Database https://github.com/advisories/GHSA-v8qj-hxv7-mgvv
  • github.com https://github.com/open-webui/open-webui/security/advisories/GHSA-v8qj-hxv7-mgvv