KiCad MCP Pro: Variant export tools write outside KICAD_MCP_WORKSPACE_ROOT via unvalidated variant and output_name arguments
- CVE-2026-141546
- GHSA-wfmg-598x-58c5
- EUVD-2026-141812
Description
KiCad MCP Pro is an MCP server connecting AI agents to KiCad schematic and PCB workflows. Prior to 4.20.1, variant_export_bom, variant_export_schematic, and variant_export_manufacturing_package in src/kicad_mcp/tools/variants.py join unvalidated variant or output_name values to the output directory after the workspace check. A caller able to invoke these tools can use traversal or an absolute path to create directories or write and overwrite files outside KICAD_MCP_WORKSPACE_ROOT. Exploitation requires an active project and a schematic-capable profile; the tools are not in the default profile. No confidentiality impact is claimed. This issue is fixed in version 4.20.1.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
oaslananka kicad-mcp-pro
Affected versions Fixed in < 4.20.1 none stated kicad-mcp-proPyPI
Affected versions Fixed in up to 4.20.0 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.