CVE-2026-50758 Details
Description
Cross Site Scripting vulnerability in DayuanJiang next-ai-draw-io 0.4.13 allows a remote attacker to execute arbitrary code via the mcp parameter
A cross-site scripting (XSS) vulnerability has been identified in the DayuanJiang Next-AI-Draw-IO project, specifically in the MCP server component, version 0.4.13. The issue arises from the MCP server's HTTP interface, which directly interpolates the 'mcp' query parameter into both HTML and JavaScript contexts without proper sanitization. This flaw allows remote attackers to execute arbitrary JavaScript in the victim's browser, with the potential to steal diagram data and manipulate active sessions. The vulnerability is exacerbated by a permissive CORS configuration that enables cross-origin interactions with the MCP server's API endpoints.
The CORS configuration should be updated to restrict access to the same origin. Additionally, the MCP server should validate and sanitize the 'mcp' query parameter before rendering it in the response.
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/CVEP/issues/17 | [email protected] | ExploitIssue TrackingTechnical Analysis |
| https://github.com/August829/Yu/blob/main/CVE-2026-50758.md | [email protected] | Technical Description |
| https://github.com/DayuanJiang/next-ai-draw-io/issues/755 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| DayuanJiang next-ai-draw-io | <= 0.4.13 (semver) |
CPE
Remediation
| |
| DayuanJiang next-ai-drawio 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