PyPI
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
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 4.20.1
- Weakness
- Path traversal (CWE-22)
- Attack
- Needs local access · Needs a user account · Needs someone to click or open something
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N- Also known as
- GHSA-wfmg-598x-58c5
- Sources
- OSV.dev and GitHub
Description
The three variant export tools build their output path by joining an unvalidated tool argument onto the output directory, so the write lands wherever that argument points. KICAD_MCP_WORKSPACE_ROOT does not contain it.
Both variant and output_name work. variant has a suffix appended (_bom.csv, _gerber), while output_name has none, so with output_name the caller controls the entire final path component.
It overwrote a pre-existing file outside the workspace root, wrote to an absolute path outside it, and created directories outside it with no KiCad installed at all.
This is the same class as GHSA-h93v-ccrj-58fw, which was fixed in 4.15.1, in a module that fix did not touch. PR #1720 changed only src/kicad_mcp/project/creation.py and two test files, and added no shared guard, so the pattern survives in 4.20.0.
Anyone who can call these MCP tools can write and overwrite files outside the configured workspace root.
Affected software
| Software | Affected versions |
|---|---|
kicad-mcp-proPyPI · osv:PyPI:kicad-mcp-pro |
|
About kicad-mcp-pro
- Weekly downloads (PyPI)
- 8,469PyPI Stats, 3 Dec 2026
This is the only vulnerability in kicad-mcp-pro in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141546
- GitHub Advisory Database https://github.com/advisories/GHSA-wfmg-598x-58c5