CVE-2026-50757 Details
Description
Directory Traversal vulnerability in DayuanJiang next-ai-draw-io 0.4.13 allowsa remote attacker to execute arbitrary code via the nex-ai-draw-io/mcp-server
A directory traversal vulnerability has been identified in DayuanJiang's next-ai-draw-io version 0.4.13, specifically within the @next-ai-drawio/mcp-server component, which is vulnerable through version 0.1.16. This vulnerability allows local attackers to execute arbitrary code by exploiting the 'export_diagram' tool, which fails to properly validate file paths before writing diagram content to the user's filesystem. The MCP server operates with full user permissions, increasing the risk of exploitation.
To address this vulnerability, it is recommended to implement proper path validation and sanitization in the 'export_diagram' tool. This can include restricting file writes to a designated export directory or validating that paths stay within the user's working directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 21, 2026CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/August829/Yu/blob/main/CVE-2026-50757.md | [email protected] | Technical Description |
| https://github.com/DayuanJiang/next-ai-draw-io/issues/754 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| DayuanJiang next-ai-draw-io | 0.4.13 (semver) |
CPE
Remediation
| |
| DayuanJiang next-ai-draw-io/mcp-server | <= 0.1.16 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |
Volerion