# CVE-2026-15751: MasterGo Magic MCP path traversal in mcp__getComponentGenerator

Source: https://junglewise.ai/threats/cve-2026-15751-mastergo-magic-mcp-path-traversal-in-mcp-getcomponentgenerator  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-14. Updated: 2026-07-14  
License: CC BY 4.0 with a link back

CVE-2026-15751 · Severity: medium · CVSS 5.3 · Published 2026-07-14

A vulnerability exists in MasterGo Magic MCP, a tool used to connect design software with AI models. An attacker can manipulate file paths to create unauthorized directories or overwrite specific files on the system where the tool is running. This could lead to the corruption of project data or the placement of files in sensitive locations, potentially disrupting operations or misleading other automated systems.

Technologies: [MasterGo Magic-Mcp](https://junglewise.ai/threats/technologies/magic-mcp). Vendors: [MasterGo](https://junglewise.ai/threats/vendors/mastergo).

## Quick answers

**Is CVE-2026-15751 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-15751 being exploited in the wild.

**How severe is CVE-2026-15751?** Medium severity, with a CVSS score of 5.3, published 14 July 2026.

**Which products and versions are affected?** MasterGo Magic-Mcp up to 0.2.0.

**Is there a fix for CVE-2026-15751?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-15751 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-15751?** Check whether you run MasterGo Magic-Mcp at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in the 'execute' function of the 'mcp__getComponentGenerator' tool within mastergo-magic-mcp (up to 0.2.0). The root cause is the lack of input validation or sanitization on the 'rootPath' argument, which is directly concatenated into a file path string and passed to 'fs.mkdirSync' with the 'recursive: true' flag and 'fs.writeFileSync'. A local attacker or a malicious LLM/MCP client can provide a manipulated 'rootPath' (e.g., using '../' sequences) to create arbitrary directory structures or overwrite files with project-defined templates and JSON data from the MasterGo API. While the attacker does not have full control over the file content, the ability to control the destination path allows for filesystem probing and data planting. As of the advisory date, the project has not responded to the issue report.

## Affected products

- mastergo-design mastergo-magic-mcp up to 0.2.0

## Timeline

- 2026-05-29: other: Vulnerability discovered and tested on version 0.1.7-beta.0
- 2026-07-14: disclosed: Public disclosure of the exploit and vulnerability details
- 2026-07-14: advisory

## References

- [https://github.com/mastergo-design/mastergo-magic-mcp/](https://github.com/mastergo-design/mastergo-magic-mcp/)
- [https://github.com/mastergo-design/mastergo-magic-mcp/issues/90](https://github.com/mastergo-design/mastergo-magic-mcp/issues/90)
- [https://vuldb.com/cve/CVE-2026-15751](https://vuldb.com/cve/CVE-2026-15751)
- [https://vuldb.com/submit/856634](https://vuldb.com/submit/856634)
- [https://vuldb.com/vuln/378330](https://vuldb.com/vuln/378330)
- [https://vuldb.com/vuln/378330/cti](https://vuldb.com/vuln/378330/cti)

## Related threats

- [MasterGo Magic MCP SSRF in mcp__getComponentLink](https://junglewise.ai/threats/cve-2026-15750-mastergo-magic-mcp-ssrf-in-mcp-getcomponentlink)
- [mastergo-design mastergo-magic-mcp path traversal in mcp__C2d tool](https://junglewise.ai/threats/cve-2026-15749-mastergo-design-mastergo-magic-mcp-path-traversal-in-mcp-c2d-tool)
