Skip to content
HighVulnerability

CVE-2025-58374: Roo Code arbitrary code execution through npm install auto-approval

Identifier
CVE-2025-58374
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

Roo Code versions 3.25.23 and below ship a default allowlist of commands that run without manual approval when auto-approve is enabled, and that list includes npm install. Because npm install executes lifecycle scripts, a malicious postinstall script in a repository's package.json runs automatically, so opening a malicious repo with auto-approved commands enabled can lead to arbitrary code execution.

Mitigation

Fixed in version 3.26.0.