Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-53097: Roo Code search_files tool reads files outside VS Code workspace

Identifier
CVE-2025-53097
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Roo Code, an AI-powered autonomous coding agent, prior to version 3.20.3 had a flaw where the `search_files` tool ignored the setting that disables reads outside the VS Code workspace. An attacker who could inject a prompt into the agent could read a sensitive file and write its contents into a JSON schema, which triggered a network request by default without user confirmation. The issue is rated moderate because the attacker must already be able to submit prompts to the agent.

Mitigation

Fixed in 3.20.3: `search_files` now respects the setting that limits it to the workspace.