GitHub Advisoryadvisory · PyPI
GHSA-jpcj-7wfg-mqxv stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution
HIGH
Official page ↗
- Aliases
- CVE-2026-31040
- Ecosystem
- PyPI
- Packages
- stata-mcp
- Severity
- High
- CVSS vector
- 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
- Weaknesses
- CWE-20
- Reviewed
- 2026-04-08
Affected packages
• PyPI stata-mcp: < 1.13.0 → fixed in 1.13.0
Description
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.
Related
Alias · CVE (1)
- CVE-2026-31040 A vulnerability was identified in stata-mcp prior to v1.13.0 where insufficient validation of user-supplied Stata do-file content can lead… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31040 advisory
- https://github.com/SepineTam/stata-mcp/issues/20 web
- https://github.com/SepineTam/stata-mcp/pull/21 web
- https://github.com/SepineTam/stata-mcp/commit/52413ce web
- https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0 web
- https://github.com/sepinetam/stata-mcp package