CVE-2025-58374 Details
Description
Roo Code is an AI-powered autonomous coding agent that lives in users' editors. Versions 3.25.23 and below contain a default list of allowed commands that do not need manual approval if auto-approve is enabled, and npm install is included in that list. Because npm install executes lifecycle scripts, if a repository’s package.json file contains a malicious postinstall script, it would be executed automatically without user approval. This means that enabling auto-approved commands and opening a malicious repo could result in arbitrary code execution. This is fixed in version 3.26.0.
A vulnerability in Roo Code versions through 3.25.23 allows for arbitrary code execution via malicious postinstall scripts in package.json files. The issue arises because npm install is included in a default list of commands that can be auto-approved, bypassing manual oversight. When a user opens a repository with a harmful postinstall script, the script is executed automatically, potentially leading to exploitation.
Users can update to Roo Code version 3.26.0 or later, where this vulnerability has been fixed. The update removes dangerous commands from the default auto-approve allowlist and ensures that these commands are no longer permitted after the extension is updated.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| roocode roo code | < 3.26.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2025 | Initial Analysis | [email protected] |
| Sep 6, 2025 | New CVE Received | [email protected] |