{"id":"CVE-2025-58374","published":"2025-09-06T02:19:40Z","modified":"2025-09-08T14:05:33Z","title":"Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts","vendor":"RooCodeInc","product":"Roo-Code","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00222,"percentile":0.13027,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RooCodeInc/Roo-Code/pull/7390/files","tags":["x_refsource_MISC"]},{"url":"https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.61},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"roocodeinc","affectedVersions":[{"vendor":"RooCodeInc","product":"Roo-Code","versions":["< 3.26.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-09-08T13:53:41.487362Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-27127","exploited":false,"provenance":"source"}}