CVE-2025-53098: Roo Code Vulnerable to Potential Remote Code Execution via Model Context Protocol

Published Jun 27, 2025
·
Updated

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.

Affected Software

2 affected components
Roo Code Roo Code<3.20.3
RooCode Roo Code<3.20.3

Event History

Jun 27, 2025
CVE Published
via MITRE·09:43 PM
Data Sourced
via MITRE·09:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-53098?

CVE-2025-53098 is rated as high severity due to the potential for remote code execution via arbitrary command execution in configuration files.

2

How do I fix CVE-2025-53098?

To resolve CVE-2025-53098, update your Roo Code application to version 3.20.4 or later, where the vulnerability has been patched.

3

What platforms are affected by CVE-2025-53098?

CVE-2025-53098 affects all versions of Roo Code prior to 3.20.4, specifically when using the MCP configuration files.

4

What is the nature of the vulnerability in CVE-2025-53098?

CVE-2025-53098 allows an attacker to execute arbitrary commands through a misconfiguration in the MCP settings of the Roo Code agent.

5

Can I use Roo Code safely if I do not update for CVE-2025-53098?

Using Roo Code without the update for CVE-2025-53098 poses a significant security risk, and it is strongly recommended to update.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203