{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "4.20.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "1ddb8ce1d3a8a67d4670f947a582d07c9ba29130"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "mcp-server-v4.20.1",
                "range": [
                  {
                    "fixed": "d1beb04fcd920ee9fb729ee3098661827ae07dff"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d1beb04fcd920ee9fb729ee3098661827ae07dff"
            },
            {
              "fixed": "1ddb8ce1d3a8a67d4670f947a582d07c9ba29130"
            }
          ],
          "repo": "https://github.com/oaslananka/kicad-mcp-pro",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wfmg-598x-58c5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141546.json"
  },
  "details": "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.",
  "id": "CVE-2026-141546",
  "modified": "2026-12-02T21:45:47.239055264Z",
  "published": "2026-12-02T18:51:54.701Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141546.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oaslananka/kicad-mcp-pro/commit/1ddb8ce1d3a8a67d4670f947a582d07c9ba29130"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oaslananka/kicad-mcp-pro/pull/1806"
    },
    {
      "type": "WEB",
      "url": "https://github.com/oaslananka/kicad-mcp-pro/releases/tag/mcp-server-v4.20.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/oaslananka/kicad-mcp-pro/security/advisories/GHSA-wfmg-598x-58c5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141546"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "KiCad MCP Pro: Variant export tools write outside KICAD_MCP_WORKSPACE_ROOT via unvalidated variant and output_name arguments"
}