Versions 3.25.23 and below contain a vulnerability where certain VS Code workspace configuration files (.code-workspace) are not protected in the same way as the .vscode folder.
- CVSS
- 9.8Critical
- Chance of exploitation (EPSS)
- 0.53%
- Published
- Sep 5, 2025
- In the news
- Not yet
What to do
A critical code injection flaw in Roo Code that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Roo-code
- < 3.26.0
Description
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Versions 3.25.23 and below contain a vulnerability where certain VS Code workspace configuration files (.code-workspace) are not protected in the same way as the .vscode folder. If the agent was configured to auto-approve file writes, an attacker able to influence prompts (for example via prompt injection) could cause malicious workspace settings or tasks to be written. These tasks could then be executed automatically when the workspace is reopened, resulting in arbitrary code execution. This issue is fixed in version 3.26.0.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2025-58372 published (CVSS 9.8) (Sep 5, 2025)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Sep 5, 2025
- CVECVE-2025-58372 published (CVSS 9.8)CVE Program · 23:15 UTC
References 3
- github.com Patch /RooCodeInc/Roo-Code/commit/296edfc829a7c6efc8b5dbe09aa766a9aed79598
- github.com Vendor Advisory /RooCodeInc/Roo-Code/security/advisories/GHSA-4pqh-4ggm-jfmm
- github.com /RooCodeInc/Roo-Code/releases/tag/v3.26.0