CVE-2026-81835
Received Received - Intake

Code Injection in Roo-Code via MCP Integration

Vulnerability report for CVE-2026-81835, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-28

Last updated on: 2026-08-28

Assigner: VulDB

Description

A security vulnerability has been detected in RooCodeInc Roo-Code up to 3.51.1. This affects the function fetch_instructions of the file malicious_mcp_server.py of the component MCP Integration Trust Model. The manipulation leads to code injection. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-28
Last Modified
2026-08-28
Generated
2026-09-17
AI Q&A
2026-08-28
EPSS Evaluated
2026-09-15
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
roocodeinc roo-code to 3.51.1 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-81835 is a code injection vulnerability in RooCodeInc Roo-Code up to version 3.51.1. It affects the fetch_instructions function in malicious_mcp_server.py, allowing remote attackers to inject malicious code via the MCP Integration Trust Model. The vendor states the affected project is no longer supported and has been archived.

Detection Guidance

Check for installed MCP servers in Roo-Code by inspecting the malicious_mcp_server.py file or searching for MCP server configurations. Monitor network traffic for unexpected outbound connections to untrusted servers. Review system logs for unusual command executions or data exfiltration attempts.

Impact Analysis

This vulnerability allows remote attackers to execute arbitrary commands, steal sensitive data like credentials and API keys, and maintain persistent access. Attackers can trick users into installing malicious MCP servers that inject poisoned instructions into the system prompt.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data such as environment variables, credentials, and API keys, which may violate GDPR's data protection requirements and HIPAA's safeguards for protected health information. The lack of validation and sandboxing for MCP server responses increases the risk of data breaches and unauthorized processing of personal data.

Mitigation Strategies

Immediately uninstall Roo-Code 3.51.1 or earlier. Disable all untrusted MCP servers. Implement content validation and sandboxing for MCP responses. Use only verified MCP servers from trusted sources. Monitor for persistent access or unusual activity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-81835. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart