Stored XSS via unsanitized Mermaid SVG rendering
Published Sep 8, 2026 · Updated Sep 8, 2026
Stored XSS in ShowDoc 3.9.0 through 3.9.1 allows remote authenticated users to execute script when another user views a saved page. The Mermaid path in web_src/public/editor.md/editormd.js inserts generated SVG without DOMPurify sanitization and uses permissive label settings. An account able to edit a page must store the payload, and a victim must open the page; execution occurs in the victim's browser context.
Summary
What happened
Stored XSS in ShowDoc 3.9.0 through 3.9.1 allows remote authenticated users to execute script when another user views a saved page. The Mermaid path in web_src/public/editor.md/editormd.js inserts generated SVG without DOMPurify sanitization and uses permissive label settings. An account able to edit a page must store the payload, and a victim must open the page; execution occurs in the victim's browser context.
The record
- CVE
- CVE-2026-86644
- Published
- Sep 8, 2026
- Updated
- Sep 8, 2026
- Vendor
- ShowDoc
- Product
- ShowDoc
- Classifications
- CWE-79, CWE-94, T1203
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 8, 2026CVE publishedPublication date reported by the CVE source.
- Sep 8, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.9.0
- Affected versionversion=3.9.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- ShowDoc 3.7.1–3.9.1 cross-site scripting proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo