{"id":"CVE-2026-31040","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.","aliases":["GHSA-jpcj-7wfg-mqxv","PYSEC-2026-3076"],"modified":"2026-07-15T01:49:04.188903057Z","published":"2026-04-08T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31040.json","cna_assigner":"mitre"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sepinetam/mcp-for-stata","events":[{"introduced":"0"},{"fixed":"52413ce"},{"fixed":"23ed9d1e7c10a093427c12a7177a365afab00b98"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v1.12.1","v1.12.0","v1.11.1","v1.11.0","v1.10.2","v1.10.1","v1.10.0","v1.9.1","v1.9.0","v1.8.2","v1.8.1","v1.8.0","v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.3","v1.6.2","v1.6.1","v1.6.0","v1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.4.1","v1.4.0","v1.3.10","v1.3.8","v1.3.7","v1.3.6","v1.3.5","v1.3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31040.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}