CVE-2026-120203
8.8 HIGHpublic exploit availablePublished 2026-10-31 · Updated 2026-10-31
AI risk analysis
- Summary
- ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature where authenticated users can inject and execute arbitrary shell commands via mockjs templates that use eval() on user-controlled input containing escaped parentheses.
- Exploitability
- Exploitation requires valid authentication and the ability to submit a malicious mockjs template through the MockController::add endpoint, but is otherwise straightforward due to lack of input sanitization.
- Blast radius
- In the official Docker image, exploitation allows full system compromise as root, enabling data exfiltration, lateral movement, or persistence.
- Detection
- Defenders should monitor for HTTP POST requests to /index.php/mock/add containing suspicious patterns such as escaped parentheses (e.g., \(\)) in the template body, followed by subsequent GET requests to /index.php/mock/infoByKey referencing the same mock key; these logs may indicate attempted exploitation.
- Prioritized remediation
- Upgrade to ShowDoc version 3.9.6 or later, which patches the vulnerability by sanitizing mockjs template inputs before evaluation.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
All references
- https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54
- https://github.com/star7th/showdoc
- https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42
- https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288
- https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2021-48016PoC
- HIGHCVE-2026-112773PoC
- CRITICALCVE-2026-115188PoC
- CRITICALCVE-2026-61707PoC
- HIGHCVE-2026-102607PoC
- HIGHCVE-2026-119144PoC
- HIGHCVE-2026-100857PoC
- HIGHCVE-2026-100864PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.