Code injection in ShowDoc Mock templates lets users run commands
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.
Summary
ShowDoc from 2.8.14 before 3.9.6 contains a code injection flaw (CWE-94) in its Mock feature. An authenticated user can store a crafted mockjs template that the server evaluates with eval(), so the user can run shell commands on the host. The commands run as root in the official Docker image.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Description from the CNA
ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature that allows authenticated users to execute shell commands through mockjs templates. Attackers can store a template via MockController::add with escaped parentheses that mockjs evaluates with eval(), then trigger it through MockController::infoByKey to run commands, as root in the official Docker image.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The fixed version is ShowDoc 3.9.6.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
- Fix · CNA ShowDoc (ShowDoc) Fixed in 3.9.6
Timeline
- 2026-10-31 Threatist record created from CVE-2026-120203
- 2026-10-31 Alias added: GHSA-fm4v-42hr-rpgp
- 2026-11-02 Priority changed: MEDIUM → LOW
- 2026-11-06 CISA SSVC decision points changed
- 2026-11-06 Priority changed: LOW → MEDIUM
References
More star7th vulnerabilities
- TI-2025-00432 ShowDoc < 2.8.7 Unauthenticated File Upload Remote Code Execution CVSS 4.0CRITICAL 9.4
- TI-2026-59246 star7th showdoc API Page Save Endpoint editormd.js cross site scripting CVSS 4.0MEDIUM 5.1
- TI-2021-14768 Unrestricted File Upload in ShowDoc v2.9.5 allows remote attackers to execute arbitrary… CVSS 3.1CRITICAL 9.8
- TI-2022-00287 SQL Injection in star7th/showdoc CVSS 3.1CRITICAL 9.8
- TI-2021-18398 ShowDoc 2.8.3 ihas a file upload vulnerability, where attackers can use the vulnerability to obtain server permissions. CVSS 3.1CRITICAL 9.8
- TI-2021-03036 Cross-Site Request Forgery (CSRF) in star7th/showdoc CVSS 3.1HIGH 8.8
Sources
- CVE-2026-120203 · CVE Program
- CVE-2026-120203 · NVD
- FIRST EPSS
- GHSA-fm4v-42hr-rpgp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences