CVE-2025-58374: Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts

Published Sep 6, 2025
·
Updated

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 Software

3 affected components
Roo Code Roo Code<=3.25.23
Roo Code Roo Code>3.26.0
RooCode Roo Code<3.26.0

Event History

Sep 6, 2025
CVE Published
via MITRE·02:19 AM
Data Sourced
via MITRE·02:19 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-58374?

CVE-2025-58374 is classified as a high severity vulnerability due to its potential to execute commands without manual approval.

2

Who is affected by CVE-2025-58374?

CVE-2025-58374 affects all versions of Roo Code 3.25.23 and below that have auto-approval enabled.

3

How do I fix CVE-2025-58374?

To fix CVE-2025-58374, upgrade to Roo Code version 3.26.0 or later where the issue has been addressed.

4

What are the implications of CVE-2025-58374?

The implications of CVE-2025-58374 include unauthorized command execution which could lead to security breaches.

5

Is CVE-2025-58374 related to npm install?

Yes, CVE-2025-58374 includes npm install in the list of commands that can be executed without manual approval when auto-approve is enabled.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203