Arbitrary Command Injection Affecting @roo-code/types package, versions <1.27.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ROOCODETYPES-10874502
  • published22 Jul 2025
  • disclosed27 Jun 2025
  • creditUnknown

Introduced: 27 Jun 2025

CVE-2025-53098  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @roo-code/types to version 1.27.0 or higher.

Overview

@roo-code/types is a TypeScript type definitions for Roo Code.

Affected versions of this package are vulnerable to Arbitrary Command Injection via the MCP configuration process. An attacker can execute arbitrary commands by crafting a prompt that causes the agent to write malicious commands to the configuration file.

Note:

This is only exploitable if the attacker can submit prompts to the agent, the user has MCP enabled, and auto-approved file writes are enabled.

References

CVSS Base Scores

version 4.0
version 3.1