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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-09-06T02:19:40.112Z
- Modified: 2026-06-17T09:44:22.917Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- RooCodeInc Roo-Code: < 3.26.0
- roocode roo_code: before 3.26.0

## References

- <https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v> (vendor-advisory)
- <https://github.com/RooCodeInc/Roo-Code/pull/7390/files> (product)
- <https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0> (release-notes)

## Sources

- CVE List: [CVE-2025-58374](https://www.cve.org/CVERecord?id=CVE-2025-58374), CVE Terms of Use, modified 2025-09-08
- NVD: [CVE-2025-58374](https://nvd.nist.gov/vuln/detail/CVE-2025-58374), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-58374 · Whole record: https://cve.day/CVE-2025-58374.json · Rebuilt by cve.day 2026-11-25T22:59:04.296Z
