What happened
In astro-airflow-mcp 0.5.0–0.9.1 the af CLI and MCP server spawn a telemetry Python subprocess that can import modules from the current working directory. If a user runs an af command or an MCP tool call from inside a project containing an attacker-supplied json.py, that file executes with the user's privileges. Fixed in 0.9.2. CVSS 7.8 (CVSS 3.1).
Why it matters
This is a supply-chain-style workdir-execution flaw in AI data-pipeline tooling: an Airflow MCP server/CLI run against a cloned or third-party project directory can execute attacker code. An AI agent or data engineer introspecting an untrusted repo (e.g. one flagged by prompt injection or a poisoned dependency) triggers local code execution under the operator's account.
Attack vector
Local — run the af command or an MCP tool call from a directory containing a malicious json.py; the telemetry subprocess imports it and runs it.
Affected systems
astro-airflow-mcp 0.5.0 ≤ version < 0.9.2
Mitigation
Upgrade to 0.9.2; on earlier versions set AF_TELEMETRY_DISABLED=1; only invoke the tool in trusted project directories.