{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120203","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-10-31T11:44:47.454Z","datePublished":"2026-10-31T17:25:52.170Z","dateUpdated":"2026-10-31T17:25:52.170Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-10-31T17:25:52.170Z"},"datePublic":"2026-10-30T00:00:00.000Z","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."}],"problemTypes":[{"descriptions":[{"lang":"en","description":"Improper Control of Generation of Code ('Code Injection')","cweId":"CWE-94","type":"CWE"}]}],"affected":[{"vendor":"ShowDoc","product":"ShowDoc","defaultStatus":"unaffected","packageURL":"pkg:composer/showdoc/showdoc","versions":[{"version":"2.8.14","lessThan":"3.9.6","status":"affected","versionType":"semver"}],"repo":"https://github.com/star7th/showdoc"}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:showdoc:showdoc:*:*:*:*:*:*:*:*","versionEndExcluding":"3.9.6","versionStartIncluding":"2.8.14"}]}]}],"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"}}],"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"]},{"name":"VulnCheck Advisory: ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/showdoc-2.8.14-before-3.9.6-code-injection-via-mock-templates"}],"credits":[{"lang":"en","value":"LionTree","type":"finder"},{"lang":"en","value":"star7th","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}