Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. stata-mcp
  4. ›
  5. CVE-2026-55071

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

August 12, 2026

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. Base CVSS score is 8.4 (High).

References

  • github.com/SepineTam/mcp-for-stata/releases/tag/v1.19.0
  • github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-49m4-vp58-wgc9
  • github.com/advisories/GHSA-49m4-vp58-wgc9
  • nvd.nist.gov/vuln/detail/CVE-2026-55071

Code Behaviors & Features

Detect and mitigate CVE-2026-55071 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.19.0

Fixed versions

  • 1.19.0

Solution

Upgrade to version 1.19.0 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/stata-mcp/CVE-2026-55071.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:21:14 +0000.