Improper Neutralization of Special Elements in Output Used by a Downstream Component ('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.07% (22nd 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 IDSNYK-JS-ROOCODETYPES-10874503
  • published22 Jul 2025
  • disclosed27 Jun 2025
  • creditUnknown

Introduced: 27 Jun 2025

CVE-2025-53097  (opens in a new tab)
CWE-74  (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 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the search_files function. An attacker can access sensitive files outside the intended workspace and exfiltrate their contents by injecting prompts that cause the agent to write this information to a JSON schema, which then triggers a network request without user intervention.

Note:

This is only exploitable if the attacker is able to submit prompts to the agent and schema fetching is enabled in the environment.

Workaround

This vulnerability can be mitigated by disabling schema fetching in VS Code.

CVSS Base Scores

version 4.0
version 3.1