High severity · published Sep 6, 2025
CVE-2025-58374
Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts
7.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 12% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RO
Roo-Code · RooCodeInc
< 3.26.0 · source: vendor
RC
Roo Code · Roocode
before 3.26.0 · source: NVD
Affected product
RO
Roo-Code
RooCodeInc
More from Roo-Code
9.8
CVE-2025-58372
Roo Code: Potential Remote Code Execution via .code-workspace
9.8
CVE-2025-58371
Roo Code is vulnerable to command injection via GitHub actions workflow
8.8
CVE-2026-110206
Roo-Code through 3.54.0 Auto-Approve Bypass via Command Substitution at Command Position
8.8
CVE-2026-110205
Roo-Code through 3.54.0 Auto-Approve Bypass via Glob Token Discarding Command Substitution
8.8
CVE-2026-110204
Roo-Code through 3.54.0 Auto-Approve Bypass via Funsub Command Substitution