{"id":"CVE-2025-58374","aliases":["CVE-2025-58374"],"related":[],"kind":"vulnerability","state":"published","title":"Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-09-06T02:19:40.112Z","modified":"2026-06-17T09:44:22.917Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 3.26.0","status":"affected"}],"vendor":"RooCodeInc","product":"Roo-Code","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.26.0"}],"vendor":"roocode","product":"roo_code","cpe":"cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/RooCodeInc/Roo-Code/pull/7390/files","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-09-08T13:53:41.487Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58374","url":"https://www.cve.org/CVERecord?id=CVE-2025-58374","licence":"CVE Terms of Use","modified":"2025-09-08T14:05:33.807Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58374","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58374","licence":"Public domain","modified":"2026-06-17T09:44:22.917Z"}],"updatedAt":"2026-11-25T22:59:04.296Z","epss":{"score":0.00239,"percentile":0.16093,"date":"2026-12-01T12:00:22.000Z"}}