Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker obtains low-privilege access to Roo-Code
-
DeliveryCrafts malicious query input targeting optimizeQuery
-
ExploitVictim user passively triggers CodeIndexManager (e.g., opens project or indexes code)
-
ExecutionInjected code executes within application context
-
ImpactAttacker achieves partial confidentiality, integrity, or availability impact
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 a low level of privileges (PR:L per CVSS 4.0), meaning the attacker must have some authenticated or credentialed access to the Roo-Code environment rather than being fully unauthenticated. Passive user interaction (UI:P) is also required, suggesting a victim user must perform a routine action - such as opening a file, triggering indexing, or initiating a query - to activate the vulnerable |
| Impact | Despite the RCE tag, the official CVSS 4.0 score is 2.0, reflecting low-level impacts (VC:L/VI:L/VA:L) and exploitation constraints (PR:L/UI:P). The low CIA impact scores suggest the injection may be constrained in scope rather than achieving full system compromise. Key risk signals: a public POC exists (E:P in the CVSS 4.0 threat metric), raising the likelihood of opportunistic use; the product is NOT in CISA KEV, indicating no confirmed widespread active exploitation. No EPSS score was provided in the input data, so exploitation probability cannot be quantified from that signal. The most significant risk amplifier is the permanent no-patch status - the vendor has archived the project and explicitly disclaimed responsibility. Any organization still running Roo-Code faces a vulnerability with no remediation path from the vendor. The low deployment footprint of an archived niche tool materially limits aggregate exposure. |
| Exploit ScenarioDerived | A low-privileged remote attacker with access to the Roo-Code interface crafts a malicious input designed to manipulate the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Code injection in RooCodeInc Roo-Code up to version 3.51.1 allows a remote, low-privileged attacker with passive user interaction to inject and execute arbitrary code via the optimizeQuery function in the CodeIndexManager component (src/utils/helpers.ts). A public proof-of-concept exploit exists on GitHub. Critically, the vendor has explicitly archived the repository and will not issue a patch, leaving all users of this product permanently unpatched.
RemediationAI
No vendor-released patch is available, and none will be issued - the vendor has archived the repository and explicitly discouraged continued use. The primary remediation is to discontinue use of Roo-Code entirely and migrate to an actively maintained alternative. As a compensating control, restrict network access to environments running Roo-Code to prevent remote exploitation (the attack vector is AV:N); note this does not eliminate risk but raises the bar for remote attackers. Additionally, enforce least-privilege on accounts that interact with the tool, given that PR:L is required. Organizations unable to migrate immediately should audit whether the CodeIndexManager/code-indexing feature can be disabled, which would remove the vulnerable optimizeQuery code path; disabling this feature may reduce code intelligence functionality. The public POC at https://gist.github.com/tchen200311/d77f66ef70c88f7c55c84a3aaeecc100 should be reviewed by defenders to understand the specific injection trigger.
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 (CPE: cpe:2.3:a:roocodeinc:roo-code:*:*:*:*:*:*:*:*) is an AI-assisted coding tool whose CodeIndexManager component processes code queries through a function called optimizeQuery in src/utils/helpers.ts. The root cause is CWE-94 (Improper Control of Generation of Code, i.e., code injection): user-supplied or externally-influenced input is incorporated into a code or query path without adequate sanitization or neutralization, allowing an attacker to alter the intended execution flow. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) indicates the attack is network-reachable, requires no special attack conditions, but does require low-level privileges and passive user interaction, consistent with an IDE extension or similar developer-tooling context.
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, low complexity, low privileges required, user interaction required; unchanged scope and low CIA impacts per CVSS 4.0 base metrics.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security flaw has been discovered in RooCodeInc Roo-Code up to 3.51.1. Affected by this vulnerability is the function optimizeQuery of the file src/utils/helpers.ts of the component CodeIndexManager. Performing a manipulation results in code injection. Remote exploitation of the attack is possible. The exploit has been released to the public and may be used for attacks. 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-67228
GHSA-88j7-xhq4-rhh3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB