{"id":"CVE-2026-120203","summary":"ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","details":"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.","modified":"2026-11-08T02:30:19.294472678Z","published":"2026-10-31T17:25:52.170Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120203.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-94"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120203.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120203"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates"},{"type":"FIX","url":"https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288"},{"type":"PACKAGE","url":"https://github.com/star7th/showdoc"},{"type":"ARTICLE","url":"https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54"},{"type":"ARTICLE","url":"https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/star7th/showdoc","events":[{"introduced":"f1911629fda40c758b7142a68ae1c67be33271f7"},{"fixed":"5a2087a3f408f5266f61e9e2fb98845ef4788288"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.8.14"},{"fixed":"3.9.6"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"5a2087a3f408f5266f61e9e2fb98845ef4788288"}],"source":"REFERENCES_COMMIT"},{"range":[{"introduced":"2.8.14"},{"fixed":"3.9.6"}],"source":"DESCRIPTION"}]}}],"versions":["v3.9.5","v3.9.4","v3.9.3","v3.9.2","v3.9.1","v3.9.0","v3.8.4","v3.8.3","v3.8.2","v3.8.1","v3.8.0","v3.7.3","v3.7.2","v3.7.1","v3.6.2","v3.6.1","v3.6.0","v3.5.1","v3.5.0","v3.4.1","v3.4.0","v3.3.1","v3.3.0","v3.2.6","v3.2.5","v3.2.4","v3.2.3","v3.2.2","v3.2.1","v3.2.0","v3.1.0","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.10.10","v2.10.9","v2.10.8","v2.10.7","v2.10.6","v2.10.5","v2.10.4","v2.10.3","v2.10.2","v2.10.1","v2.10.0","v2.9.15","v2.9.14","v2.9.13","v2.9.12","v2.9.11","v2.9.10","v2.9.9","v2.9.8","v2.9.7","v2.9.6","v2.9.5","v2.9.4","v2.9.3","v2.9.2","v2.9.1","v2.9.0","v2.8.16","v2.8.15","2.8.14"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120203.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}