KiCad MCP Pro: Variant export tools write outside KICAD_MCP_WORKSPACE_ROOT via unvalidated variant and output_name arguments
CVE-2026-141546Published 2 Dec 2026, 18:51 UTC
Real-world risk
2.1/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.0
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| kicad-mcp-proNiche | < 4.20.1 | 4.20.1 |
What to do
Update to a fixed version: 4.20.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.35 × threat 0.852.082
- Rounded to one decimal between 0.1 and 102.1
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 2.1 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/oaslananka/kicad-mcp-pro/security/advisories/GHSA-wfmg-598x-58c5vendor-advisory
- https://github.com/oaslananka/kicad-mcp-pro/pull/1806misc
- https://github.com/oaslananka/kicad-mcp-pro/commit/1ddb8ce1d3a8a67d4670f947a582d07c9ba29130misc
- https://github.com/oaslananka/kicad-mcp-pro/releases/tag/mcp-server-v4.20.1misc
- CVE-2026-141546 on CVE.org