CVE-2025-53098 Details
Description
Roo Code is an AI-powered autonomous coding agent. The project-specific MCP configuration for the Roo Code agent is stored in the `.roo/mcp.json` file within the VS Code workspace. Because the MCP configuration format allows for execution of arbitrary commands, prior to version 3.20.3, it would have been possible for an attacker with access to craft a prompt to ask the agent to write a malicious command to the MCP configuration file. If the user had opted-in to auto-approving file writes within the project, this would have led to arbitrary command execution. This issue is of moderate severity, since it requires the attacker to already be able to submit prompts to the agent (for instance through a prompt injection attack), for the user to have MCP enabled (on by default), and for the user to have enabled auto-approved file writes (off by default). Version 3.20.3 fixes the issue by adding an additional layer of opt-in configuration for auto-approving writing to Roo's configuration files, including all files within the `.roo/` folder.
A vulnerability in the Roo Code AI-powered coding agent allows for remote code execution through the Model Context Protocol (MCP) configuration. The issue arises because the MCP format can execute arbitrary commands, and prior to version 3.20.3, an attacker could craft a prompt to inject malicious commands into the MCP configuration file, located in the user's VS Code workspace. This exploitation required the user to have MCP enabled (which is the default setting) and to have opted for automatic approval of file writes, a feature that is turned off by default. The vulnerability is considered moderate in severity, as it necessitates an initial prompt injection attack to exploit.
Users can update to Roo Code version 3.20.3 or later, which addresses this vulnerability by introducing an opt-in configuration for automatic approval of writes to Roo's configuration files, including those in the `.roo/` directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 3, 2025References 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| roocode roo code | < 3.20.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2025 | Initial Analysis | [email protected] |
| Jul 1, 2025 | CVE Modified | [email protected] |
| Jun 27, 2025 | New CVE Received | [email protected] |