CVE-2025-53097: Roo Code extension vulnerable to Potential Information Leakage via JSON Schema

Published Jun 27, 2025
·
Updated

Roo Code is an AI-powered autonomous coding agent. Prior to version 3.20.3, there was an issue where the Roo Code agent's searchfiles tool did not respect the setting to disable reads outside of the VS Code workspace. This means that an attacker who was able to inject a prompt into the agent could potentially read a sensitive file and then write the information to a JSON schema. Users have the option to disable schema fetching in VS Code, but the feature is enabled by default. For users with this feature enabled, writing to the schema would trigger a network request without the user having a chance to deny. This issue is of moderate severity, since it requires the attacker to already be able to submit prompts to the agent. Version 3.20.3 fixed the issue where searchfiles did not respect the setting to limit it to the workspace. This reduces the scope of the damage if an attacker is able to take control of the agent through prompt injection or another vector.

Affected Software

2 affected components
Roo Code Roo Code<3.20.3
RooCode Roo Code<3.20.3

Event History

Jun 27, 2025
CVE Published
via MITRE·09:43 PM
Data Sourced
via MITRE·09:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What are the risks associated with CVE-2025-53097?

CVE-2025-53097 allows unauthorized file reads, potentially exposing sensitive data or leading to further exploitation.

2

How do I fix CVE-2025-53097?

To remediate CVE-2025-53097, update Roo Code to version 3.20.3 or later, which resolves the issue.

3

Who is affected by CVE-2025-53097?

CVE-2025-53097 affects all versions of Roo Code prior to 3.20.3.

4

What is the main problem described in CVE-2025-53097?

The issue in CVE-2025-53097 is that the 'search_files' tool does not honor settings to restrict file access within the VS Code workspace.

5

Can attackers exploit CVE-2025-53097 remotely?

Yes, attackers who can inject prompts into the Roo Code agent can exploit CVE-2025-53097 to read files outside the intended workspace.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203