# CVE-2026-54011: Open WebUI: Stored XSS in Mermaid Markdown Preview

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-17T14:14:05.000Z
- Modified: 2026-07-20T21:15:24.578Z
- Also known as: GHSA-v8qj-hxv7-mgvv, PYSEC-2026-2759
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- open-webui open-webui: < 0.9.6
- open-webui (PyPI): before 0.9.6
- openwebui open_webui: before 0.9.6

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-v8qj-hxv7-mgvv> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54011> (advisory)
- <https://github.com/advisories/GHSA-v8qj-hxv7-mgvv> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/open-webui/PYSEC-2026-2759.yaml> (web)
- <https://pypi.org/project/open-webui> (package, web)

## Sources

- CVE List: [CVE-2026-54011](https://www.cve.org/CVERecord?id=CVE-2026-54011), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-v8qj-hxv7-mgvv](https://github.com/advisories/GHSA-v8qj-hxv7-mgvv), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54011](https://nvd.nist.gov/vuln/detail/CVE-2026-54011), Public domain, modified 2026-06-25
- PyPA Advisory Database: [PYSEC-2026-2759](https://osv.dev/vulnerability/PYSEC-2026-2759), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-54011 · Whole record: https://cve.day/CVE-2026-54011.json · Rebuilt by cve.day 2026-11-25T22:59:25.508Z
