Skip to main content

Roslyn CodeLens MCP CVE-2026-45555

| EUVDEUVD-2026-33302 HIGH
Code Injection (CWE-94)
2026-05-29 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious .NET repository
  2. Delivery
    Victim clones or opens solution
  3. Exploit
    MCP client invokes get_diagnostics
  4. Execution
    Server loads attacker DiagnosticAnalyzer DLL
  5. Persist
    Analyzer constructor executes arbitrary code
  6. Impact
    Attacker gains developer-level OS access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim open a solution controlled by the attacker (a .csproj plus an attacker-controlled DiagnosticAnalyzer DLL reachable from the project) with a vulnerable Roslyn CodeLens MCP Server (0.0.9 to <1.17.0), and that the get_diagnostics MCP tool be invoked against that solution - which happens by default because includeAnalyzers is true. Limiting factors per CVSS AV:L/UI:R: the attacker needs local file system reach (typically achieved by getting the victim to clone, download, or open a repository) and the get_diagnostics tool must actually be called, so a developer who never opens untrusted solutions or who has disabled analyzer loading is not exposed. No authentication is required of the attacker (PR:N) and attack complexity is low (AC:L).

Impact

The CVSS 7.8 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects that exploitation requires the victim to open a malicious solution locally - not a network-reachable RCE - but yields full confidentiality, integrity, and availability impact in the server process context. There is no EPSS score, no CISA KEV listing, and no public POC referenced, so this is best characterized as no public exploit identified at time of analysis rather than an actively exploited issue. Real-world risk is meaningful despite the local vector: MCP servers are increasingly attached to AI coding assistants that routinely open arbitrary repositories from the internet (GitHub clones, code review, dependency audits), which collapses the social-engineering barrier implied by UI:R into something close to drive-by code execution for developers using this tool. SSVC data is not provided; based on the description the technical impact is total within the server process and exploitation is automatable via a poisoned repository.

Exploit ScenarioDerived

An attacker publishes a repository (or submits a pull request) containing a .csproj that references a malicious DiagnosticAnalyzer DLL bundled in the repo. A developer using an AI assistant backed by Roslyn CodeLens MCP opens or clones the repo and the assistant calls get_diagnostics on the solution; the analyzer DLL is loaded and its constructor runs arbitrary code in the MCP server process, giving the attacker code execution as the developer.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Arbitrary code execution in Roslyn CodeLens MCP Server versions 0.0.9 through 1.17.0 allows attackers to run code in the MCP server process by tricking a victim into opening a malicious .NET solution. The get_diagnostics tool automatically loads and executes any DiagnosticAnalyzer DLL referenced by a .csproj without allowlist, signature validation, or user prompt, and includeAnalyzers defaults to true. No public exploit identified at time of analysis, but the attack pattern (malicious project file + attacker-controlled DLL) is well understood and trivial to weaponize.

RemediationAI

Vendor-released patch: upgrade to Roslyn CodeLens MCP Server 1.17.0 or later, per the GitHub Security Advisory at https://github.com/MarcelRoozekrans/roslyn-codelens-mcp/security/advisories/GHSA-552p-8f74-6x7q. If an immediate upgrade is not possible, invoke get_diagnostics with includeAnalyzers explicitly set to false to suppress analyzer loading (trade-off: you lose custom analyzer diagnostics from the response). As a structural workaround, only point the MCP server at solutions from trusted sources and avoid opening freshly cloned third-party repositories until upgraded; running the MCP server under a least-privileged OS account or inside a sandbox/container limits the blast radius of any analyzer DLL execution but does not prevent it.

Affected VersionsENISA

roslyn-codelens-mcp 0.0.9, < 1.17.0

Affected Packages

euvd roslyn_codelens_mcp_0_0_9 fix: 1.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Roslyn is Microsoft's open-source .NET compiler platform; it allows third-party DiagnosticAnalyzer assemblies to be referenced from a project (.csproj) and loaded into the compilation pipeline to surface custom warnings and code intelligence. The Model Context Protocol (MCP) is an emerging standard for exposing tools and data to LLM-driven agents, and this server bridges Roslyn diagnostics into that ecosystem. The vulnerability is rooted in CWE-94 (Improper Control of Generation of Code) because the get_diagnostics tool treats analyzer DLL references in untrusted .csproj files as trusted code to execute in-process. CPE cpe:2.3:a:marcelroozekrans:roslyn-codelens-mcp identifies the single affected implementation.

Know when Roslyn Codelens Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
May 29, 2026 - 15:01 EUVD

DescriptionCVE.org

Roslyn CodeLens MCP Server is a Roslyn-based MCP server providing semantic code intelligence for .NET codebases. From 0.0.9 to 1.17.0, the get_diagnostics MCP tool loads and executes all DiagnosticAnalyzer assemblies referenced by the target solution without any allowlist, signature check, or user confirmation; includeAnalyzers defaults to true, so no explicit opt-in is required. An attacker who can place a malicious .csproj referencing an attacker-controlled DLL in a location the victim opens with the MCP server will achieve arbitrary code execution in the server process with the server's OS privileges. This vulnerability is fixed in 1.17.0.

Executive ViewAI

Why It Matters

Roslyn CodeLens MCP Server (versions 0.0.9-1.17.0) is vulnerable to arbitrary code execution when developers open specially crafted .NET solution files, with no public exploit identified at time of analysis. However, the vulnerability exposes development environments to potential compromise and creates supply chain risk through source code tampering or credential theft.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable MCP server if not critical to workflows; implement controls restricting .NET solution file execution from untrusted sources; enforce code review and change tracking for developers; implement application whitelisting on development systems; maintain network segmentation between development and production environments; monitor development systems for suspicious process execution and unauthorized credential usage.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy