Skip to main content

ShowDoc CVE-2026-86644

| EUVDEUVD-2026-72760 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-09-08 VulDB GHSA-rhvg-pc25-4r8p
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to ShowDoc with low-privilege account
  2. Delivery
    Embed malicious Mermaid diagram block in API documentation page
  3. Exploit
    Save page via API Page Save Endpoint
  4. Execution
    Victim user views poisoned page
  5. Persist
    Unsanitized Mermaid SVG executes JavaScript payload in victim browser
  6. Impact
    Exfiltrate 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 htmlLabels enabled is part of ShowDoc's default editor setup in versions 3.9.0 and 3.9.1. A second prerequisite is that a victim user must passively view the poisoned page (UI:P); there is no zero-click path. Exploitation is bounded to ShowDoc 3.9.0-3.9.1; instances already running 3.9.2 are not affected. Public-facing ShowDoc instances allowing open or semi-open account registration face meaningfully higher risk than tightly access-controlled internal deployments.

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 htmlLabels setting or loose securityLevel to inject a JavaScript payload - for example, a script that exfiltrates the viewer's session cookie to an attacker-controlled endpoint. When an administrator or other authenticated user passively views that page, the script executes in their browser session, handing the attacker a valid high-privilege session token. A public PoC demonstrating this technique is available at https://gist.github.com/saDL0w/36a72a076e9ab24408a3d27582e778b2.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ShowDoc 3.9.1
ShowDoc 3.9.0

Affected Packages

euvd showdoc no fix

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

Vendor (VulDB) PRIMARY 2.0 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 08, 2026 - 14:22 NVD
MEDIUM LOW
CVSS changed
Sep 08, 2026 - 14:22 NVD
5.1 (MEDIUM) 2.0 (LOW)
CVE Published
Sep 08, 2026 - 13:30 cve.org
MEDIUM 5.1

DescriptionCVE.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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
self-hosted documentation tool used by developer teams
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2021-36440 CRITICAL POC
9.8 Sep 08

Unrestricted File Upload in ShowDoc v2.9.5 allows remote attackers to execute arbitrary code via the 'file_url' paramete

CVE-2021-4168 HIGH POC
8.8 Dec 26

showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated high severity (CVSS 8.8), this vulnerability is remote

CVE-2021-4017 HIGH POC
8.8 Dec 01

showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated high severity (CVSS 8.8), this vulnerability is remote

CVE-2022-0409 HIGH POC
7.8 Feb 19

Unrestricted Upload of File with Dangerous Type in Packagist showdoc/showdoc prior to 2.10.2. Rated high severity (CVSS

CVE-2022-1034 HIGH POC
7.2 Mar 22

There is a Unrestricted Upload of File vulnerability in ShowDoc v2.10.3 in GitHub repository star7th/showdoc prior to 2.

CVE-2021-3993 MEDIUM POC
6.5 Dec 01

showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2021-3990 MEDIUM POC
6.5 Dec 01

showdoc is vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG). Rated medium severity (CVS

CVE-2021-3683 MEDIUM POC
6.5 Nov 13

showdoc is vulnerable to Cross-Site Request Forgery (CSRF). Rated medium severity (CVSS 6.5), this vulnerability is remo

CVE-2018-19621 MEDIUM POC
6.5 Nov 28

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

CVE-2018-19609 MEDIUM POC
6.5 Nov 27

ShowDoc 2.4.1 allows remote attackers to obtain sensitive information by navigating with a modified page_id, as demonstr

CVE-2022-0951 MEDIUM POC
6.1 Mar 15

File Upload Restriction Bypass leading to Stored XSS Vulnerability in GitHub repository star7th/showdoc prior to 2.10.4.

CVE-2021-4000 MEDIUM POC
6.1 Dec 03

showdoc is vulnerable to URL Redirection to Untrusted Site. Rated medium severity (CVSS 6.1), this vulnerability is remo

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy