Arbitrary Code Execution in Roslyn CodeLens MCP Server by Vulnerable DiagnosticAnalyzer Assemblies
CVE-2026-45555
7.8HIGH
What is CVE-2026-45555?
The Roslyn CodeLens MCP Server is susceptible to a significant security issue where the get_diagnostics MCP tool indiscriminately loads and executes DiagnosticAnalyzer assemblies from the target solution. This occurs without any validation, allowlist, or user confirmation, leading to a serious risk of arbitrary code execution if an attacker places a malicious .csproj file that references a compromised DLL within the project's accessible directories. As a result, the server operates under its OS privileges, which can lead to extensive system compromise. The vulnerability has been addressed in version 1.17.0.
Affected Version(s)
roslyn-codelens-mcp >= 0.0.9, < 1.17.0
