Skip to content
Threat Feed
high advisory

ShowDoc: Remote code execution in Mock feature (CVE-2026-120203)

ShowDoc versions 2.8.14 through 3.9.5 are vulnerable to authenticated remote code execution via a code injection flaw in the Mock feature's template processing.

CVE search metadata

CVE search record: CVE-2026-120203. Severity: high. CVSS: 8.8. KEV: no. Product: ShowDoc (2.8.14 <= version < 3.9.6). Brief: ShowDoc: Remote code execution in Mock feature (CVE-2026-120203). Brief link: https://feed.craftedsignal.io/briefs/2026-10-showdoc-code-injection/

Triage facts

Revision 1
Applicability
ShowDoc (2.8.14 <= version < 3.9.6)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 1Oct 31, 22:05 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
A1Likely

ShowDoc 2.8.14 through 3.9.5 contains a code injection vulnerability in its Mock feature, tracked as CVE-2026-120203. Authenticated users can inject malicious shell commands into mockjs templates via the MockController::add endpoint. When these templates are subsequently processed via MockController::infoByKey, the application uses eval() to execute the embedded code, leading to command execution with root privileges in default Docker deployments.

Attack Chain

  1. Attacker authenticates to the ShowDoc application.
  2. Attacker crafts a malicious mockjs template containing shell commands.
  3. Attacker submits the payload via the MockController::add endpoint.
  4. The malicious template is stored in the application database.
  5. Attacker triggers execution by accessing the MockController::infoByKey endpoint.
  6. The application processes the template using eval(), executing the payload as root.

Impact

Successful exploitation allows for arbitrary command execution with root privileges when the application is running in the official Docker environment.

Recommendation

Upgrade ShowDoc to version 3.9.6 or later to address the vulnerable Mock feature.


Immediate actions

Patch ShowDoc to version 3.9.6 or later

IT Operations 24h

Threat Hunt

Search web logs for POST requests to /MockController/add or /MockController/infoByKey followed by unusual system command activity

T1059.003 high medium confidence hunt now

Data: webserver_access_logs, os_process_creation_logs

Mitigations

Upgrade ShowDoc to 3.9.6

immediate IT Operations

CVE-2026-120203

Detection coverage 1

Detect CVE-2026-120203 Exploitation - Suspicious Mock Template Submission

high

Detects potential CVE-2026-120203 exploitation by monitoring HTTP POST requests to the MockController add endpoint containing suspicious characters often associated with shell injection.

sigma tactics: execution techniques: T1059.003 sources: webserver

Detection queries are available on the platform. Get full rules →