CVE-2026-31040
9.8critical
stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.13% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-jpcj-7wfg-mqxvPYSEC-2026-3076
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| stata-mcp (PyPI) | before 1.13.0 | GitHub Advisory Database, PyPA Advisory Database |
| statamcp stata-mcp | before 1.13.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | 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 |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
NVD (es)
Se identificó una vulnerabilidad en stata-mcp anterior a la v1.13.0 donde la validación insuficiente del contenido de archivos do de Stata proporcionados por el usuario puede llevar a la ejecución de comandos.
References
| https://github.com/SepineTam/stata-mcp/issues/20 | exploit, issue-tracking, vendor-advisory, web | |
| https://github.com/SepineTam/stata-mcp/pull/21 | issue-tracking, web | |
| https://github.com/SepineTam/stata-mcp/commit/52413ce | patch, web | |
| https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-31040 | advisory | |
| https://github.com/sepinetam/stata-mcp | package | |
| https://pypi.org/project/stata-mcp | package | |
| https://github.com/advisories/GHSA-jpcj-7wfg-mqxv | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31040 changed 2026-04-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jpcj-7wfg-mqxv changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-31040 changed 2026-07-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3076 changed 2026-07-13 | CC-BY-4.0 |