{"id":69617,"date":"2025-09-06T07:33:11","date_gmt":"2025-09-06T04:03:11","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-58374-roo-code-auto-approve-allows-npm-install-execution-of-malicious-postinstall-scripts\/"},"modified":"2025-09-06T07:33:11","modified_gmt":"2025-09-06T04:03:11","slug":"cve-2025-58374-roo-code-auto-approve-allows-npm-install-execution-of-malicious-postinstall-scripts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-58374-roo-code-auto-approve-allows-npm-install-execution-of-malicious-postinstall-scripts\/","title":{"rendered":"CVE-2025-58374 &#8211; Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-58374<br \/>\n<br \/>\n<strong>Published : <\/strong> Sept. 6, 2025, 2:19 a.m. | 57\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>Roo Code is an AI-powered autonomous coding agent that lives in users&#8217; 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\u2019s 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.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-58374 Published : Sept. 6, 2025, 2:19 a.m. | 57\u00a0minutes ago Description : Roo Code is an AI-powered autonomous coding agent that lives in users&#8217; 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-69617","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/69617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=69617"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/69617\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=69617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=69617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=69617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}