CVE-2026-120203 Details
Description
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.
A code injection vulnerability has been identified in ShowDoc versions 2.8.14 prior to 3.9.6, specifically within the Mock feature. This vulnerability allows authenticated users to execute shell commands by exploiting mockjs templates. The issue arises because mockjs evaluates template placeholders using eval(), enabling the execution of arbitrary commands. In the official Docker image, this command execution occurs with root privileges.
Users can update to ShowDoc version 3.9.6 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 31, 2026CISA-ADP
Assessed Nov 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54 | [email protected] | ExploitTechnical Analysis |
| https://github.com/star7th/showdoc | [email protected] | ProductSource CodeVendor |
| https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42 | [email protected] | Source CodeVendor |
| https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288 | [email protected] | Source CodeVendor |
| https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates | [email protected] | AdvisoryBundleRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ShowDoc | >= 2.8.14, < 3.9.6 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 6, 2026 | CVE Modified | CISA-ADP |
| Oct 31, 2026 | New CVE Received | [email protected] |
Volerion