{"answers":{"affected":"3 open source packages ship an affected version, including stata-mcp.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55071 exists.","fix":"Upgrade stata-mcp to 1.19.0 or later.","what":"CVE-2026-55071 is a high-severity command injection vulnerability in SepineTam mcp-for-stata, published on 21 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55071 and fix it if it is affected.\n\nWhat it is: CVE-2026-55071 is a high-severity command injection vulnerability in SepineTam mcp-for-stata, published on 21 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55071 exists.\n\nAffected packages and fixed versions:\n- stata-mcp (PyPI): affected all versions; fixed in 1.19.0\n- stata-mcp (PyPI): affected all versions; fixed in 1.19.0\n- stata-mcp (PyPI): affected all versions; fixed in 1.19.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55071/ (Markdown: https://insights.sbomify.com/CVE-2026-55071/index.md)","id":"CVE-2026-55071","markdown":"https://insights.sbomify.com/CVE-2026-55071/index.md","name":"CVE-2026-55071","record":{"aliases":["GHSA-49m4-vp58-wgc9","PYSEC-2026-3700"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Stata MCP server","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands by injecting newlines into the package argument of the ado_package_install tool in the Stata MCP server.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`","id":"CVE-2026-55071","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Pimcore: ClassDefinition UID regex missing end anchor allows SQL injection via Block.php unquoted table name","id":"CVE-2026-55072"},"packages":[{"ecosystem":"PyPI","fixed":["1.19.0"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":null,"source":"GHSA-49m4-vp58-wgc9"},{"ecosystem":"PyPI","fixed":["1.19.0"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"GHSA-49m4-vp58-wgc9"},{"ecosystem":"PyPI","fixed":["1.19.0"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"PYSEC-2026-3700"}],"prev":{"headline":"Kestra BasicAuth Password Stored as SHA-512 Enables Offline Brute-Force Attack","id":"CVE-2026-55069"},"products":["mcp-for-stata"],"published":"2026-09-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-21","vendors":["SepineTam"]},"summary":"Attackers can execute arbitrary OS commands by injecting newlines into the package argument of the ado_package_install tool in the Stata MCP server.","url":"https://insights.sbomify.com/CVE-2026-55071/"}