CVE-2026-31040 json
stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution
published 2026-04-08 7 mo ago modified 2026-07-25 3 mo ago also GHSA-jpcj-7wfg-mqxv , PYSEC-2026-3076 , EUVD-2026-20475
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi stata-mcp 1.13.0
- statamcp stata-mcp 1.13.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 7 mo ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/SepineTam/stata-mcp/issues/20 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | stata-mcp | <1.13.0 |
1.13.0 |
Classification
References
-
github.com
/SepineTam/stata-mcp/pull/21
web, issue-tracking
-
github.com
/SepineTam/stata-mcp/commit/52413ce
web, patch
-
github.com
/SepineTam/stata-mcp/issues/20
exploit, web, issue-tracking, vendor-advisory
-
github.com
/SepineTam/stata-mcp/releases/tag/v1.13.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-31040
advisory
-
github.com
/sepinetam/stata-mcp
package
-
pypi.org
/project/stata-mcp
package
-
github.com
/advisories/GHSA-jpcj-7wfg-mqxv
advisory
Sources
- CVE List CVE-2026-31040
- GitHub Advisory GHSA-jpcj-7wfg-mqxv
- NVD CVE-2026-31040
- OSV PYSEC-2026-3076
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.