CVE-2026-31040: Vulnerability in Stata-mcp

Critical. 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.

PyPI, CWE-20, CWE-94

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-jpcj-7wfg-mqxv
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-20, CWE-94
Published
8 Apr 2026
Last change
25 Jul 2026
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Stata-mcp Before 1.13.0. Fixed in 1.13.0

Affected packages

Vulnerable version ranges and fixed releases

  • stata-mcp PyPI, Affected before 1.13.0. Fixed in 1.13.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related