Vulnerability · Published Sep 21, 2026 · Assigned by GitHub_M

CVE-2026-55071MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`

High 8.4

In plain English

A high-severity code injection in mcp-for-stata from SepineTam. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.4High
Exploit odds (30 days)0.3%top 83.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

MCP-for-Stata is a MCP server for integrating Stata into agent loops with a safety-first design. Prior to version 1.19.0, the ado_package_install MCP tool in stata-mcp concatenates user-controlled input directly into a Stata command string without any validation or sanitization. An attacker who can invoke the MCP tool or the equivalent Python API can embed newline characters in the package argument to inject arbitrary Stata commands. Because Stata supports a shell escape command, this leads to full OS-level arbitrary command execution (RCE) under the account running the Stata-MCP server. The tool is registered in the default all profile, so no non-default configuration is required. This issue has been patched in version 1.19.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIstata-mcp1.19.0GHSA-49m4-vp58-wgc9
PyPIstata-mcp1.19.0PYSEC-2026-3700

Affected products (as reported)

VendorProductVersions
SepineTam mcp-for-stata < 1.19.0

Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References