PyPA Advisory Database
PYSEC-2026-3076
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | stata-mcp | All versions before 1.13.0 (fixed in 1.13.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31040
- https://github.com/SepineTam/stata-mcp/issues/20
- https://github.com/SepineTam/stata-mcp/pull/21
- https://github.com/SepineTam/stata-mcp/commit/52413ce
- https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0
- https://github.com/sepinetam/stata-mcp
- https://pypi.org/project/stata-mcp
- https://github.com/advisories/GHSA-jpcj-7wfg-mqxv