{"id":"CVE-2026-120203","aliases":["CVE-2026-120203"],"related":[],"kind":"vulnerability","state":"published","title":"ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-31T17:25:52.170Z","modified":"2026-11-06T19:17:40.703Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"2.8.14","fixed":"3.9.6","status":"affected"}],"vendor":"ShowDoc","product":"ShowDoc","repo":"https://github.com/star7th/showdoc","source":"cvelist"}],"references":[{"url":"https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/star7th/showdoc","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["LionTree","star7th"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-06T18:51:10.231Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120203","url":"https://www.cve.org/CVERecord?id=CVE-2026-120203","licence":"CVE Terms of Use","modified":"2026-11-06T18:52:41.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120203","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120203","licence":"Public domain","modified":"2026-11-06T19:17:40.703Z"}],"updatedAt":"2026-11-25T22:59:48.078Z","epss":{"score":0.00441,"percentile":0.40036,"date":"2026-12-01T12:00:22.000Z"}}