# CVE-2026-141546: KiCad MCP Pro: Variant export tools write outside KICAD\_MCP\_WORKSPACE\_ROOT via unvalidated variant and output\_name arguments

- **Severity:** MEDIUM 5.0
- **CVSS:** 5.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-22
- **Aliases:** GHSA-wfmg-598x-58c5
- **Published:** 2026-12-02T18:51:54.701Z
- **Modified:** 2026-12-03T02:28:49.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can invoke KiCad MCP Pro variant export tools can use path traversal or absolute paths to write and overwrite files outside the configured workspace root.

## Who should check

- Projects that depend on PyPI package kicad-mcp-pro (\<= 4.20.0)
- Anyone running oaslananka kicad-mcp-pro \< 4.20.1

## 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.

## Affected and fixed versions

- PyPI `kicad-mcp-pro`: affected \<= 4.20.0; fixed 4.20.1 (ghsa)
- oaslananka kicad-mcp-pro: \< 4.20.1 (cvelist)

## Technologies

MCP servers and SDKs (AI-matched), PyPI packages

## Mitigation

- Upgrade kicad-mcp-pro to 4.20.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-141546. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141546.md
Affected: kicad-mcp-pro <= 4.20.0
Fixed in: 4.20.1

Steps:
1. Search this machine and project for kicad-mcp-pro (PyPI), oaslananka kicad-mcp-pro: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-141546 being exploited?

There is no confirmed exploitation: CVE-2026-141546 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-141546?

Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-141546?

kicad-mcp-pro \<= 4.20.0.

### Is there a fix for CVE-2026-141546?

Yes. Fixed in 4.20.1. Upgrade kicad-mcp-pro to 4.20.1 or later.

### How do I check if I'm affected by CVE-2026-141546?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/oaslananka/kicad-mcp-pro/security/advisories/GHSA-wfmg-598x-58c5>
- patch: <https://github.com/oaslananka/kicad-mcp-pro/pull/1806>
- patch: <https://github.com/oaslananka/kicad-mcp-pro/commit/1ddb8ce1d3a8a67d4670f947a582d07c9ba29130>
- other: <https://github.com/oaslananka/kicad-mcp-pro/releases/tag/mcp-server-v4.20.1>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-141546>
- other: <https://github.com/advisories/GHSA-wfmg-598x-58c5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-141546>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-wfmg-598x-58c5> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-141546> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-141546>
