{
  "affected": [
    {
      "ranges": [
        {
          "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"
              }
            ]
          },
          "events": [
            {
              "introduced": "f1911629fda40c758b7142a68ae1c67be33271f7"
            },
            {
              "fixed": "5a2087a3f408f5266f61e9e2fb98845ef4788288"
            }
          ],
          "repo": "https://github.com/star7th/showdoc",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120203.json"
  },
  "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.",
  "id": "CVE-2026-120203",
  "modified": "2026-11-08T02:30:19.294472678Z",
  "published": "2026-10-31T17:25:52.170Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ShowDoc 2.8.14 before 3.9.6 Code Injection via Mock Templates"
}