{"id":"CVE-2026-120203","state":"PUBLISHED","title":"ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","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.","publishedAt":"2026-10-31T17:25:52.170Z","updatedAt":"2026-11-06T18:52:41.774Z","severity":{"score":8.7,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["ShowDoc ShowDoc"],"affected":[{"vendor":"ShowDoc","product":"ShowDoc","packageURL":"pkg:composer/showdoc/showdoc","defaultStatus":"unaffected","versions":[{"version":"2.8.14","status":"affected","lessThan":"3.9.6","versionType":"semver"}],"repo":"https://github.com/star7th/showdoc"}],"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"],"weaknesses":["CWE-94"],"ingestedAt":"2026-11-06T19:00:06.901Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120203.json","commit":"adec5797935f2e3f33a9bf2fa7c056b4dc2d5ed9","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120203","state":"PUBLISHED","datePublished":"2026-10-31T17:25:52.170Z","dateUpdated":"2026-11-06T18:52:41.774Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-31T11:44:47.454Z"},"containers":{"cna":{"title":"ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ShowDoc","product":"ShowDoc","packageURL":"pkg:composer/showdoc/showdoc","defaultStatus":"unaffected","versions":[{"version":"2.8.14","status":"affected","lessThan":"3.9.6","versionType":"semver"}],"repo":"https://github.com/star7th/showdoc"}],"references":[{"url":"https://github.com/star7th/showdoc/commit/5a2087a3f408f5266f61e9e2fb98845ef4788288","tags":["patch"],"name":"Patch Commit"},{"url":"https://gist.github.com/LioTree/028af150fd991cf9924dd2c7d5912e54","tags":["technical-description"]},{"url":"https://github.com/star7th/showdoc/blob/v3.9.5/mock/index.js#L42","tags":["technical-description"]},{"url":"https://github.com/star7th/showdoc","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates","name":"VulnCheck Advisory: ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-31T17:25:52.170Z"},"datePublic":"2026-10-30T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:showdoc:showdoc:*:*:*:*:*:*:*:*","versionEndExcluding":"3.9.6","versionStartIncluding":"2.8.14"}]}]}],"credits":[{"lang":"en","value":"LionTree","type":"finder"},{"lang":"en","value":"star7th","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T18:51:10.231258Z","id":"CVE-2026-120203","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T18:52:41.774Z"}}]}}}