Advisory

PYSEC-2026-3076

Also known as: CVE-2026-31040, GHSA-jpcj-7wfg-mqxv

Summary

stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution

Details

A vulnerability was identified in stata-mcp prior to v1.13.0 where insufficient validation of user-supplied Stata do-file content can lead to command execution.

Severity

Not rated by the source.

Dates

Published
2026-07-13 14:36 UTC
Modified
2026-07-13 16:33 UTC

Affected packages and fixes

stata-mcp

PyPI · All systems

Affected

  • introduced 0, fixed 1.13.0 (ecosystem)

Fixed versions

1.13.0

Fix

  • Fixed version 1.13.0
    pip install --upgrade stata-mcp==1.13.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences