{"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-47708 exists.","fix":"Upgrade stata-mcp to 1.17.3 or later.","what":"CVE-2026-47708 is a critical command injection vulnerability in SepineTam stata-mcp, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47708 and fix it if it is affected.\n\nWhat it is: CVE-2026-47708 is a critical command injection vulnerability in SepineTam stata-mcp, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47708 exists.\n\nAffected packages and fixed versions:\n- stata-mcp (PyPI): affected all versions; fixed in 1.17.3\n- stata-mcp (PyPI): affected all versions; fixed in 1.17.3\n- stata-mcp (PyPI): affected all versions; fixed in 1.17.3\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-47708/ (Markdown: https://insights.sbomify.com/CVE-2026-47708/index.md)","id":"CVE-2026-47708","markdown":"https://insights.sbomify.com/CVE-2026-47708/index.md","name":"CVE-2026-47708","record":{"aliases":["GHSA-4p62-hqp5-g644","PYSEC-2026-544"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"MCP Stata server","requires_auth":"none","summary":"Attackers can execute arbitrary Stata commands via the log_file_name parameter in the MCP-for-Stata server, requiring a patch to prevent code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"MCP-for-Stata is an MCP server for Stata to integrate Stata into an agent. Prior to version 1.17.3, the `log_file_name` parameter in the `stata_do` API and CLI is directly interpolated into a Stata command string without sanitization. The security guard (`GuardValidator`) only scans the do-file content but does not validate this parameter. An attacker can inject arbitrary Stata commands (including `shell`, `python`, `erase`, etc.) by crafting a malicious `log_file_name` containing quotes, newlines, or Stata command separators. Version 1.17.3 contains a patch for the issue.","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: Command injection via log_file_name parameter in Stata command wrapper","id":"CVE-2026-47708","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"libheif has a NULL pointer dereference in heif_image_handle_get_image_tiling for malformed unci image missing ispe","id":"CVE-2026-47709"},"packages":[{"ecosystem":"PyPI","fixed":["1.17.3"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":null,"source":"GHSA-4p62-hqp5-g644"},{"ecosystem":"PyPI","fixed":["1.17.3"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"GHSA-4p62-hqp5-g644"},{"ecosystem":"PyPI","fixed":["1.17.3"],"introduced":["0"],"last_affected":[],"package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"PYSEC-2026-544"}],"prev":{"headline":"Strawberry GraphQL's Bypass of MaxAliasesLimiter via Fragment Spreads leading to GraphQL Alias Amplification","id":"CVE-2026-47707"},"products":["stata-mcp"],"published":"2026-07-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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-22","vendors":["SepineTam"]},"summary":"Attackers can execute arbitrary Stata commands via the log_file_name parameter in the MCP-for-Stata server, requiring a patch to prevent code execution.","url":"https://insights.sbomify.com/CVE-2026-47708/"}