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.
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- —
- Published
- Sep 6, 2025
- In the news
- Not yet
What to do
A serious command injection flaw in Roo Code that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
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 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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2025-58374 published (CVSS 7.8) (Sep 5, 2025)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Sat, Sep 6, 2025
- CVECVE-2025-58374 published (CVSS 7.8)CVE Program · 03:15 UTC
References 3
- github.com Vendor Advisory /RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v
- github.com /RooCodeInc/Roo-Code/pull/7390/files
- github.com /RooCodeInc/Roo-Code/releases/tag/v3.26.0