Skip to main content
CVE-2025-53098VulnerabilityPublished Updated

CVE-2025-53098: RooCodeInc Roo-Code · Command Injection

Affects RooCodeInc Roo-CodeSource CVE Database V5

0

Not known to be exploited · CVSS 8.1 High : upgrade to 3.20.3 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.20.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade roocodeinc/Roo-Code to 3.20.3.

Affected software

ProductAffectedFixed in
GitHubroocodeinc/Roo-Codepkg:github/roocodeinc/Roo-CodeOther threatsAffected
  • <3.20.3
Fixed in
  • 3.20.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, European organizations should immediately upgrade Roo-Code to version 3.20.3 or later, which includes the necessary fixes to prevent unauthorized command execution via MCP configuration files. Organizations should audit their development environments to identify instances of Roo-Code and verify that auto-approved file writes are disabled unless explicitly required and securely configured. It is advisable to enforce strict access controls on the VS Code workspace directories, particularly the `.roo/` folder, to prevent unauthorized modification of configuration files. Implementing input validation and sanitization on any external inputs or prompts submitted to the Roo-Code agent can reduce the risk of prompt injection attacks. Additionally, organizations should monitor logs for unusual file write activities within the `.roo/` directory and anomalous command executions. Employing endpoint detection and response (EDR) solutions to detect suspicious command execution patterns can provide early warning of exploitation attempts. Finally, educating developers about the risks of enabling auto-approved file writes and the importance of cautious prompt crafting when interacting with AI coding agents will further reduce exposure.

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.

References

Community reviews

Loading reviews…