CVE-2025-58374: RooCodeInc Roo-Code · OS Command Injection
Affects RooCodeInc Roo-CodeSource CVE Database V5
Not known to be exploited · CVSS 7.8 High : upgrade to 3.26.0 soon.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.26.0
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade RooCodeInc Roo-Code to 3.26.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RooCodeInc Roo-Code | Affected
| Fixed in
|
AI-suggested
European organizations should take immediate steps to mitigate this vulnerability. First, upgrade Roo-Code to version 3.26.0 or later, where the issue is fixed. If upgrading is not immediately possible, disable the auto-approve feature for commands, especially those involving 'npm install' or other package manager commands that execute lifecycle scripts. Implement strict policies to restrict the use of untrusted or unknown repositories, including scanning package.json files for suspicious lifecycle scripts before opening repositories. Employ endpoint protection solutions capable of detecting anomalous script execution triggered by npm lifecycle events. Educate developers about the risks of opening untrusted repositories and encourage manual review of package scripts. Integrate code signing or repository whitelisting mechanisms to ensure only trusted code is executed. Monitor developer workstations for unusual process activity related to npm or shell commands. Finally, incorporate this vulnerability into supply chain risk assessments and incident response plans to quickly identify and respond to potential exploitation attempts.
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.