The KiCad MCP Pro variant export tool did not validate parameters and could write files outside the workspace root; fixed in 4.20.1
KiCad MCP Pro: Variant export tools write outside KICAD_MCP_WORKSPACE_ROOT via unvalidated variant and output_name arguments
In kicad-mcp-pro 4.20.0 and earlier, three variant export tools concatenated the unvalidated variant and output_name parameters directly into the output path, so a single MCP tool call could write, overwrite files, or create directories outside KICAD_MCP_WORKSPACE_ROOT; fixed in 4.20.1. Reproduction shows that variant supports relative traversal and absolute paths and can overwrite existing files outside the root directory; output_name can fully control the final path component, and its write test used a mock kicad-cli stub labeled by the author. The attack prerequisites are being able to call these tools, using a configuration profile that contains a schematic (the default profile does not) and having an active project; no KiCad GUI or authentication is required; the project's earlier advisory described an attack model that includes an agent guided by prompt injection.