HighVulnerability
GHSA-v8qj-hxv7-mgvv: Open WebUI: Stored XSS in Mermaid Markdown Preview
- Identifiers
- CVE-2026-54011GHSA-v8qj-hxv7-mgvv
- Published
- Record updated
- Affected
- open-webui <= 0.9.5
- Fixed in
- 0.9.6
- released June 1, 2026, 16 days before disclosure
Summary
Open WebUI renders Mermaid blocks from Markdown files in its file preview panel and inserts the generated SVG into the DOM using innerHTML. Because Mermaid is configured with securityLevel: 'loose', attacker-controlled Mermaid content executes JavaScript in the victim's browser under the application origin when a malicious .md file is opened in the preview panel. The issue is reproduced on v0.8.12 and affects main.
Mitigation
Use Mermaid's 'strict' securityLevel instead of 'loose', since Mermaid has DOMPurify built in.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- open-webuiPyPILLM dependency since 2024-05-20
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online