HOL-VULN-2026-0017HOL vulnerability recordCVSS 4.0 5 · MediumPublic

Variant export tools write outside the workspace root via unvalidated variant and output_name arguments in oaslananka/kicad-mcp-pro

kicad-mcp-pro at or below 4.20.0 had a path traversal flaw in its three variant export tools. Each tool builds its output path by joining an unvalidated tool argument onto the output directory, so the write lands wherever that argument points and KICAD_MCP_WORKSPACE_ROOT does not contain it. Both the variant and output_name arguments work: variant has a suffix appended (_bom.csv, _gerber), while output_name has none, so with output_name the caller controls the whole final path component. The reporter overwrote a file that already existed outside the workspace root, wrote to an absolute path outside it, and created directories outside it, with no KiCad installed. The tools are not in the default profile; they appear in schematic-capable profiles such as full and builder, and they need an active project. The advisory notes this is the same class as GHSA-h93v-ccrj-58fw, fixed in 4.15.1 in a different module: that fix added no shared guard, so the pattern survived in the variant tools through 4.20.0. The advisory records kicad-mcp-pro at or below 4.20.0 as affected and 4.20.1 as patched. CVE-2026-141546 is assigned.

Affected artifact
oaslananka/kicad-mcp-pro — variant export tools (tools/variants.py)mcp server
Affected versions
kicad-mcp-pro ≥ 0 to < 4.20.1
Fixed in
4.20.1
Last verified
2026-12-04

Severity

CVSS 4.0 score 5 (Medium), scored by HOL.

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

What this means

GHSA-wfmg-598x-58c5 / CVE-2026-141546: in kicad-mcp-pro, the variant export tools joined the unvalidated variant and output_name arguments onto the output path, so a tool caller could write and overwrite files outside KICAD_MCP_WORKSPACE_ROOT. Fixed in 4.20.1; upgrade from 4.20.0 and below.

What to do

Upgrade kicad-mcp-pro to 4.20.1 or later. Operators of similar tools should run every caller-supplied path component through the same workspace check that guards the base directory, not only the base itself.

Evidence

Precondition. A caller able to invoke the variant export tools in a schematic-capable profile with an active project, for example an agent steered by prompt injection from a datasheet, component description or project file, as the advisory's own attacker model describes.

Source proof. Per the advisory, the reporter ran the 4.20.0 wheel in a container and used variant and output_name values with parent traversal and absolute paths to overwrite a file outside the workspace root, write to an absolute path outside it, and create directories outside it, while the project's own documented resolver refused the same strings. HOL did not run the tool; this rests on the advisory.

Version determination. Determined by range — The advisory states kicad-mcp-pro at or below 4.20.0 is affected, patched in 4.20.1.

Disclosure

Disclosure state: independent public · Publisher: oaslananka/kicad-mcp-pro

Naming decision: named. Vendor named as drafted. Finding already public under GHSA-wfmg-598x-58c5 / CVE-2026-141546 with fix in 4.20.1; naming call sits with this job under Nov 24-25 2026 rules.

Vendor response: fixed — Fix published in 4.20.1.

  1. 2026-12-03 · vendor action

    Maintainers published advisory GHSA-wfmg-598x-58c5 with the fix in 4.20.1.

  2. 2026-12-04 · guard update

    Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 4.20.1, CVE-2026-141546 assigned.

  3. 2026-12-04 · guard update

    Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 4.20.1, CVE-2026-141546 assigned.

  4. 2026-12-04 · disclosure

    Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 4.20.1, CVE-2026-141546 assigned.

Affected artifact references

Cite this record

[HOL-VULN-2026-0017] Variant export tools write outside the workspace root via unvalidated variant and output_name arguments in oaslananka/kicad-mcp-pro — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0017

Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0017

Found an error in this record, or want to appeal it? Report an issue or appeal.

Appeal or correct this record

Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.

Appeal or correct HOL-VULN-2026-0017