CVE-2026-120203
ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates
- State
- Published
- Severity
- 8.7 High
- Published
- Oct 31, 2026
- Updated
- Oct 31, 2026
- Reserved
- Oct 31, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
ShowDocShowDoc |
|
References
- Patch Commitpatch
- https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54technical-description
- https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42technical-description
- https://github.com/star7th/showdocproduct
- VulnCheck Advisory: ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templatesthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.