{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "52413ce"
            },
            {
              "fixed": "23ed9d1e7c10a093427c12a7177a365afab00b98"
            }
          ],
          "repo": "https://github.com/sepinetam/mcp-for-stata",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31040.json"
  },
  "details": "A vulnerability was identified in stata-mcp prior to v1.13.0 where insufficient validation of user-supplied Stata do-file content can lead to command execution.",
  "id": "CVE-2026-31040",
  "modified": "2026-07-15T01:49:04.188903057Z",
  "published": "2026-04-08T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31040"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/SepineTam/stata-mcp/issues/20"
    },
    {
      "type": "FIX",
      "url": "https://github.com/SepineTam/stata-mcp/commit/52413ce"
    },
    {
      "type": "FIX",
      "url": "https://github.com/SepineTam/stata-mcp/pull/21"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}