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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2025-06-27T21:43:31.678Z
- Modified: 2026-06-17T09:37:37.153Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- RooCodeInc Roo-Code: < 3.20.3
- roocode roo_code: before 3.20.3

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-wr2q-46pg-f228> (vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/commit/10b2fb32ed047bbd7b8d10ef185c1ed345efcc92> (patch)
- <https://github.com/RooCodeInc/Roo-Code/commit/7d0b22f9e659dc6c26aab0bacbea27874986e772> (patch)

## Sources

- CVE List: [CVE-2025-53097](https://www.cve.org/CVERecord?id=CVE-2025-53097), CVE Terms of Use, modified 2025-06-30
- NVD: [CVE-2025-53097](https://nvd.nist.gov/vuln/detail/CVE-2025-53097), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53097 · Whole record: https://cve.day/CVE-2025-53097.json · Rebuilt by cve.day 2026-11-25T22:59:00.329Z
