CVE-2026-77314: Flyto2 Core: Path traversal in MCP `run_recipe` allows execution of workflows outside bundled recipe directory
Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, the MCP runrecipe tool in src/core/mcphandler.py accepts a caller-controlled recipename that loadrecipe() in src/cli/recipe.py appends to the src/recipes path without resolved-path containment. Parent-directory segments can therefore make Flyto load and execute a YAML workflow outside the bundled recipe directory, bypassing the boundary represented by listrecipes(). This does not necessarily provide unrestricted code execution because available workflow modules remain subject to Flyto's module policy, but it permits unintended execution of allowed browser, network, file, and data-processing modules. This issue is fixed in version 2.26.8.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.26.8