Read the docs
TI-2025-33091 Aliases CVE-2025-53098

Roo Code Vulnerable to Potential Remote Code Execution via Model Context Protocol

Priority LOW 38CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-77.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00674 52nd percentileScored 2026-11-07
Fix Fixed Roo-Code (RooCodeInc): 3.20.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
RooCodeIncRoo-Codebefore 3.20.33.20.3Patch availableCNA
  • Roo-Code VendorRooCodeInc Affected before 3.20.3 Fixed in 3.20.3 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*before 3.20.3VulnerableRooCodeInc
  • cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:* Versions before 3.20.3 Vulnerable ·RooCodeInc

Remediation

  • Fix · CNA Roo-Code (RooCodeInc) Fixed in 3.20.3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-53098

References

  • TI-2026-73422 Auto-approve bypass in Roo-Code via glob and command substitution CVSS 4.0HIGH 7.7
  • TI-2026-73421 Auto-approve bypass in Roo-Code runs denied shell commands CVSS 4.0HIGH 7.7
  • TI-2026-73419 Auto-approve bypass in Roo-Code via redirect operator stripping CVSS 4.0HIGH 7.7
  • TI-2025-34186 Roo Code Lacks Line Break Validation in its Command Execution Tool CVSS 3.1HIGH 7.8
  • TI-2025-36158 Roo Code is vulnerable to command injection via GitHub actions workflow CVSS 4.0CRITICAL 9.9
  • TI-2026-23506 Roo Code's command auto-approval module contains a critical OS command injection… CVSS 3.1CRITICAL 9.8
See all 15 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences