Quick answers
- Is CVE-2026-47708 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-47708 being exploited in the wild.
- How severe is CVE-2026-47708?
- Critical severity, with a CVSS score of 4, published 21 July 2026.
- Which products and versions are affected?
- stata-mcp (PyPI) < 1.17.3, ECOSYSTEM:introduced=0,fixed=1.17.3.
- Is there a fix for CVE-2026-47708?
- Yes. stata-mcp (PyPI): upgrade to 1.17.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-47708 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-47708?
- Check whether you run stata-mcp (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- stata-mcp (PyPI): upgrade to 1.17.3 or later
pip install "stata-mcp>=1.17.3"
Technical details
A command injection vulnerability exists in MCP-for-Stata (stata-mcp) prior to version 1.17.3. The root cause is the direct interpolation of the user-supplied `log_file_name` parameter into Stata command strings using Python f-strings within `src/stata_mcp/stata/stata_do/do.py`. While the `GuardValidator` component inspects the content of do-files, it fails to validate parameters passed to the wrapper command. An attacker can use quotes, semicolons, or newlines to break out of the `log using` command context and execute arbitrary Stata commands like `shell`, `python`, or `erase`. This allows for Remote Code Execution (RCE) and path traversal. The issue is fixed in version 1.17.3 by implementing strict regex validation and path resolution checks.
Affected products
- SepineTam stata-mcp < 1.17.3
Identifiers
- CVE-2026-47708
- GHSA-4p62-hqp5-g644
- PYSEC-2026-544
Timeline
- 2026-05-19: disclosed: Issue reported and GHSA advisory published
- 2026-07-21: advisory: CVE published to NVD
- 2026-07-21: patched: Version 1.17.3 released with fix