mcp-cve-project

CVE-2025-53098 | Roo Code workspace .roo/mcp.json code execution | High | 8.1

CVE Information

Field Value
CVE / NVD CVE-2025-53098
Date (index) 2025-06-27
Affected product (index) Roo Code (.roo/mcp.json project MCP configuration code execution)
GHSA ID GHSA-5x8h-m52g-5v54
OWASP MCP Top 10 (2025) MCP09 — Shadow MCP Servers
Published / disclosed 2025-06-27
Ecosystem npm
Component Roo Code
EPSS score 0.006270000 (FIRST EPSS, 2026-09-26)
CVSS score 8.1 (v4)
CWE CWE-77
Affected versions see advisory
Fixed versions see advisory
Fix status Patched
Exploit status Public advisory
Notes Added during 2026-09-07 gap review against NVD/GitHub Advisory MCP searches.

CVE Breakdown

What is the vulnerability?

Roo Code stored project-specific MCP configuration in .roo/mcp.json within the VS Code workspace, allowing repository-supplied MCP command definitions to execute on developer machines.

Attack prerequisites / exposure

Exposure depends on deployment: network-reachable MCP transports, enabled MCP features, local listeners without authentication, or trusted workspace/project MCP configuration treated as safe input.

CVE is because of what bug?

Workspace MCP configuration was treated as trusted and could launch arbitrary stdio MCP commands.

MCP-specific impact / why it matters

Malicious repositories can achieve local code execution when a victim opens the workspace in Roo Code.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, disable MCP features when not required, and treat project/workspace MCP configuration as untrusted input.

Upstream fix (open source)

Exploit / PoC

Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

https://github.com/RooCodeInc/Roo-Code/commit/7d0b22f9e659dc6c26aab0bacbea27874986e772