Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ShowDoc with low-privilege account
-
DeliveryEmbed malicious Mermaid diagram block in API documentation page
-
ExploitSave page via API Page Save Endpoint
-
ExecutionVictim user views poisoned page
-
PersistUnsanitized Mermaid SVG executes JavaScript payload in victim browser
-
ImpactExfiltrate session credentials or perform actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated ShowDoc account with at least page-creation or page-editing privileges (PR:L per CVSS 4.0). No special non-default configuration is needed - Mermaid rendering with |
| Impact | The CVSS 4.0 score of 5.1 (PR:L/UI:P/VI:L) is proportionate - this is a stored XSS requiring an authenticated contributor and passive victim page-view, not a remote unauthenticated exploit. EPSS data is absent from the input, and the CVE does not appear in CISA KEV, meaning no confirmed active exploitation at time of analysis. However, a public PoC is available on GitHub Gist, which substantially lowers the barrier for opportunistic attackers already holding a low-privileged account. The 'stored' nature of the payload is a meaningful amplifier: a single malicious page can persist and execute against every subsequent viewer, including administrators with elevated session privileges - effectively converting a low-privilege write into a potential high-privilege session theft. Even a mid-sized municipal IT team in opole running an internal ShowDoc portal should treat this as an urgent patch given the public PoC and the administrative account-takeover chain it enables. The CVSS score is appropriate for raw base metrics, but practical risk is elevated above the number suggests for any instance with mixed-privilege user populations. |
| Exploit ScenarioDerived | An attacker with a low-privileged ShowDoc account crafts a documentation page embedding a Mermaid diagram block that exploits the permissive |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Stored cross-site scripting in ShowDoc 3.9.0 and 3.9.1 allows an authenticated low-privileged user to inject malicious JavaScript via a crafted Mermaid diagram block saved through the API Page Save Endpoint, which then executes in the browser of any user who views the poisoned documentation page. The root cause is the Mermaid rendering library operating in its permissive default mode - with htmlLabels enabled and securityLevel not set to strict - combined with the absence of DOMPurify sanitization on rendered SVG output. A public proof-of-concept exploit is available; vendor-confirmed patch v3.9.2 resolves the issue.
RemediationAI
Upgrade ShowDoc to version 3.9.2 immediately, available at https://github.com/star7th/showdoc/releases/tag/v3.9.2 (patch commit a8ea1520850b4242f395247f72e87e597506cef0). The release applies three hardening measures to Mermaid rendering: setting securityLevel to strict, disabling htmlLabels, and post-render DOMPurify sanitization of SVG output. If immediate upgrade is not feasible, restrict page-creation and page-editing privileges to fully trusted accounts, since the attack requires an authenticated contributor to plant the payload - this reduces the attack surface but does not eliminate it for insider threat scenarios. If Mermaid diagram rendering can be disabled at the configuration level, doing so eliminates this specific attack vector entirely at the cost of diagramming functionality for all users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ShowDoc is a self-hosted API documentation and wiki platform (CPE: cpe:2.3:a:star7th:showdoc:*:*:*:*:*:*:*:*). The vulnerable code path is in web_src/public/editor.md/editormd.js, the embedded Markdown editor component that integrates the Mermaid diagramming library for rendering flowcharts and sequence diagrams from Markdown code fences. CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-site Scripting) applies because Mermaid's default securityLevel ('loose') permits arbitrary HTML in diagram definitions, and the htmlLabels flag allows raw HTML injection into diagram node labels. Rendered SVG was inserted into the DOM without post-render sanitization. The vendor-confirmed fix in commit a8ea1520 applies three layered countermeasures: setting Mermaid securityLevel to strict, disabling htmlLabels, and running DOMPurify over all rendered SVG output before DOM insertion.
Know when Showdoc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Stored XSS requires authenticated contributor (PR:L) and passive victim page-view (UI:R); scope changes to victim's browser session (S:C) enabling session-token theft (C:L) and DOM manipulation (I:L).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was determined in star7th showdoc up to 3.9.1. This vulnerability affects unknown code of the file web_src/public/editor.md/editormd.js of the component API Page Save Endpoint. Executing a manipulation can lead to cross site scripting. The attack may be launched remotely. The exploit has been publicly disclosed and may be utilized. Upgrading to version 3.9.2 is able to resolve this issue. This patch is called a8ea1520850b4242f395247f72e87e597506cef0. Upgrading the affected component is recommended. The vendor confirms: "The fix [...] sets Mermaid securityLevel to strict, disables htmlLabels, and sanitizes rendered SVG with DOMPurify."
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Unrestricted File Upload in ShowDoc v2.9.5 allows remote attackers to execute arbitrary code via the 'file_url' paramete
showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated high severity (CVSS 8.8), this vulnerability is remote
showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated high severity (CVSS 8.8), this vulnerability is remote
Unrestricted Upload of File with Dangerous Type in Packagist showdoc/showdoc prior to 2.10.2. Rated high severity (CVSS
There is a Unrestricted Upload of File vulnerability in ShowDoc v2.10.3 in GitHub repository star7th/showdoc prior to 2.
showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remo
showdoc is vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG). Rated medium severity (CVS
showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remo
server/index.php?s=/api/teamMember/save in ShowDoc 2.4.2 has a CSRF that can add members to a team. Rated medium severit
ShowDoc 2.4.1 allows remote attackers to obtain sensitive information by navigating with a modified page_id, as demonstr
File Upload Restriction Bypass leading to Stored XSS Vulnerability in GitHub repository star7th/showdoc prior to 2.10.4.
showdoc is vulnerable to URL Redirection to Untrusted Site. Rated medium severity (CVSS 6.1), this vulnerability is remo
EUVD-2026-72760
GHSA-rhvg-pc25-4r8p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB