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

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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 to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-10-31T17:25:52.170Z
- Modified: 2026-11-06T19:17:40.703Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- ShowDoc ShowDoc: from 2.8.14 before 3.9.6

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288> (patch)
- <https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54> (technical-description)
- <https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42> (technical-description)
- <https://github.com/star7th/showdoc> (product)
- <https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120203](https://www.cve.org/CVERecord?id=CVE-2026-120203), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-120203](https://nvd.nist.gov/vuln/detail/CVE-2026-120203), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-120203 · Whole record: https://cve.day/CVE-2026-120203.json · Rebuilt by cve.day 2026-11-25T22:59:48.078Z
