CVE-2026-31040
CRITICAL 9.8CVSS 3.1stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution
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.
- Published
- 8 Apr 2026
- Last modified
- 25 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-94
- Also known as
- GHSA-jpcj-7wfg-mqxvPYSEC-2026-3076
- Sources
- NVDJSONOSV GHSA-jpcj-7wfg-mqxvJSONOSV PYSEC-2026-3076JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | statamcp | stata-mcpcpe:2.3:a:statamcp:stata-mcp:*:*:*:*:*:*:*:* |
< 1.13.0 | 1.13.0 |
| OSV | PyPI | stata-mcp | < 1.13.0 | 1.13.0 |
References
- https://github.com/SepineTam/stata-mcp/commit/52413ce · Patch, WEB
- https://github.com/SepineTam/stata-mcp/issues/20 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/SepineTam/stata-mcp/pull/21 · Issue Tracking, 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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Apr 2026)