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

Medium 5.9 Published Updated

Attackers can read sensitive files outside the workspace and leak data via JSON schema network requests if prompt injection occurs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-53097?

CVE-2025-53097 is a medium-severity vulnerability in RooCodeInc Roo-Code, published on 27 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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 `search_files` 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 `search_files` 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.

Weakness: CWE-74

Which versions are affected by CVE-2025-53097?

It affects 1 product.

Products include Roocode Roo Code.

How do I fix CVE-2025-53097?

No fix has been published for CVE-2025-53097 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-53097 being exploited?

There is no known exploitation of CVE-2025-53097 in the wild and no public exploit code.

Sources

Also known as GHSA-wr2q-46pg-f228.

Is CVE-2025-53097 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free