CVE-2026-31040Statamcp Stata-mcp
Critical 9.8 No auth needed
Follow: this CVE · Statamcp · Statamcp Stata-mcp We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Apr 8, 2026
- Updated
- Jul 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Stata-mcp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | stata-mcp |
< 1.13.0 |
1.13.0 |
pip install "stata-mcp>=1.13.0" |
| PyPI | stata-mcp |
< 1.13.0 |
1.13.0 |
pip install "stata-mcp>=1.13.0" |
Per OSV / GitHub Advisories (GHSA-jpcj-7wfg-mqxv, PYSEC-2026-3076). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| statamcp | stata-mcp | < 1.13.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Vendor Advisory
- github.com Issue Tracking
- github.com Release Notes