{"id":"PYSEC-2026-3076","summary":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","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":["CVE-2026-31040","GHSA-jpcj-7wfg-mqxv"],"modified":"2026-07-13T16:33:12.969652260Z","published":"2026-07-13T14:36:49.980423Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31040"},{"type":"WEB","url":"https://github.com/SepineTam/stata-mcp/issues/20"},{"type":"WEB","url":"https://github.com/SepineTam/stata-mcp/pull/21"},{"type":"WEB","url":"https://github.com/SepineTam/stata-mcp/commit/52413ce"},{"type":"WEB","url":"https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0"},{"type":"PACKAGE","url":"https://github.com/sepinetam/stata-mcp"},{"type":"PACKAGE","url":"https://pypi.org/project/stata-mcp"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jpcj-7wfg-mqxv"}],"affected":[{"package":{"name":"stata-mcp","ecosystem":"PyPI","purl":"pkg:pypi/stata-mcp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.0"}]}],"versions":["0.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.11.1","1.12.0","1.12.1","1.3.10","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.4.0","1.4.1","1.5.1","1.5.2","1.5.3","1.6.0","1.6.1","1.6.2","1.6.3","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.8.2","1.9.0","1.9.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/stata-mcp/PYSEC-2026-3076.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}