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.
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- How many real-world setups can hit the bug, from the vendor's advisory and CISA data. It does not know your setup.What do these mean? →
- Specific setups only
- Fix
- Fixed in 3.9.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
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.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original 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.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- ShowDoc ShowDoc
From 2.8.14 · fixed in 3.9.6
References 5
GitHub · star7th/showdoc
gist.github.com
Questions about CVE-2026-120203
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: gist.github.com
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: gist.github.com
What should I do about it?
Upgrade ShowDoc to 3.9.6 or later, which is the fixed release.Source: gist.github.com
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: cve.now feed data