Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker deploys malicious MCP server
-
DeliveryLure or redirect Roo-Code user to connect
-
ExploitUser initiates MCP session triggering fetch_instructions
-
ExecutionInjected payload delivered in server response
-
PersistCode executes within Roo-Code process
-
ImpactConfidentiality, integrity, and availability of local session impacted
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 Roo-Code's MCP integration is active and that the targeted user connects the extension to an attacker-controlled MCP server endpoint - either through direct configuration, a malicious project file specifying a server URI, or social engineering. The CVSS PR:L metric confirms some level of authenticated or at-minimum application-level access is required (the user must be operating Roo-Code with MCP enabled). The UI:P metric confirms user interaction is necessary - specifically, the user must initiate or accept a connection to the malicious server, making fully passive exploitation not feasible. Exploitation is limited to users still actively running Roo-Code version 3.51.1 or earlier; no special OS privilege, elevated account, or non-default system configuration beyond having the extension installed and MCP enabled is required on the client side. The attacker must control or compromise a reachable MCP server. |
| Impact | The CVSS 4.0 base score of 5.1 (Medium) reflects the realistic constraint profile: AV:N indicates network reachability, but PR:L (low privileges) and UI:P (user interaction required) significantly reduce exploitability compared to a fully unauthenticated, zero-click flaw. The E:P (proof-of-concept) supplemental metric confirms exploit code is publicly available, elevating practical risk above a theoretical vulnerability. Impact metrics VC:L/VI:L/VA:L with no subsequent-system scope change (SC:N/SI:N/SA:N) indicate contained, limited damage per successful exploitation rather than critical system compromise. The most material risk amplifier is the permanent absence of any patch: the vendor has archived the repository and explicitly refuses to remediate, making every deployed instance indefinitely vulnerable. Prevalence is assessed as low - Roo-Code is a niche, now-abandoned AI coding extension - which limits aggregate exposure. No CISA KEV listing is present, suggesting exploitation has not been confirmed at scale as of analysis time. The combination of low footprint, low-to-moderate CVSS, and limited impact metrics means this is a low-to-medium organizational priority, elevated primarily for teams actively running Roo-Code in production. |
| Exploit ScenarioDerived | An attacker hosts a malicious MCP server and induces a Roo-Code user - through phishing, a compromised MCP server registry entry, or a crafted project configuration - to connect the extension to that server. When the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Code injection in RooCodeInc Roo-Code up to version 3.51.1 allows a remote low-privileged attacker to execute injected code via the fetch_instructions function within the MCP (Model Context Protocol) Integration Trust Model component (malicious_mcp_server.py). A publicly available proof-of-concept exploit exists on GitHub. Critically, the vendor has explicitly confirmed the product is no longer maintained - the repository is archived - meaning no patch will ever be released, permanently leaving all deployed instances vulnerable.
RemediationAI
No vendor-released patch is available and none is forthcoming - the vendor has confirmed the product is abandoned and the repository is archived. The primary remediation is to cease use of Roo-Code and migrate to an actively maintained AI coding assistant alternative. For organizations that cannot immediately migrate, the most actionable compensating control is to disable or remove MCP server integrations entirely within Roo-Code, specifically preventing the extension from connecting to any external MCP server endpoints, which eliminates the attack surface in fetch_instructions. Additionally, restricting Roo-Code's network access via host-based firewall rules to block outbound connections to untrusted MCP server addresses reduces exposure, at the trade-off of breaking legitimate MCP-dependent workflows. Given the permanent lack of vendor support, running Roo-Code in an isolated environment (e.g., a sandboxed VM or container with no access to sensitive credentials or source trees) is a viable interim measure that limits blast radius if exploitation occurs.
Affected VersionsENISA
Affected Packages
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
Roo-Code is an AI coding assistant extension that integrates with external tooling via the Model Context Protocol (MCP), an emerging standard for connecting AI agents to external servers and data sources. The vulnerable component is the MCP Integration Trust Model, specifically the fetch_instructions function in malicious_mcp_server.py, which insufficiently validates or sanitizes instructions fetched from connected MCP servers. CWE-94 (Improper Control of Generation of Code) describes the root cause: attacker-controlled input from a malicious MCP server endpoint is passed into a code-generation or execution pathway without adequate neutralization, resulting in code injection. The CPE cpe:2.3:a:roocodeinc:roo-code:*:*:*:*:*:*:*:* covers all versions up to and including 3.51.1 with no upper bound, as development has permanently ceased.
Know when Roo Code 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable via MCP endpoint (AV:N), but exploitation requires user-initiated connection (UI:R) and low-privilege application access (PR:L); impact is limited and unscoped (S:U, C:L/I:L/A:L).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in RooCodeInc Roo-Code up to 3.51.1. This affects the function fetch_instructions of the file malicious_mcp_server.py of the component MCP Integration Trust Model. The manipulation leads to code injection. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. Multiple isses were reported to the vendor beforehand. They explain, that "they all apply to Roo Code, a project we no longer support - the repository was archived a while ago, and we don't encourage anyone to use it." This vulnerability only affects products that are no longer supported by the maintainer.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
Arbitrary command execution in Roo Code (the open-source AI coding agent) through version 3.54.0 lets attackers slip pas
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Rated critical severity (CVSS 9.9), this
Roo Code is an AI-powered autonomous coding agent. Prior to 3.22.6, if the victim had "Write" auto-approved, an attacker
Roo Code is an AI-powered autonomous coding agent. The project-specific MCP configuration for the Roo Code agent is stor
Command approval bypass in Roo Code through 3.54.0 allows unauthenticated remote attackers to execute shell commands tha
Command-approval bypass in Roo Code through 3.54.0 lets attacker-influenced input cause the agent to execute arbitrary s
Auto-approval command filtering in Roo Code through 3.54.0 can be bypassed, letting an attacker run commands that should
Command approval bypass in Roo Code through 3.54.0 lets an attacker get denied shell commands auto-approved and executed
Roo Code through 3.54.0 can execute shell commands that its command auto-approval allowlist is meant to deny, because ge
Cleartext transmission of OAuth credentials in RooCodeInc Roo-Code up to version 3.51.1 exposes sensitive OAuth tokens t
Path traversal in RooCodeInc Roo-Code through version 3.51.1 allows remote unauthenticated attackers to read and write f
Code injection in RooCodeInc Roo-Code through version 3.51.1 allows remote attackers to execute arbitrary code via the E
EUVD-2026-67313
GHSA-q2jq-8pm2-fj8h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB