{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "840fe2a4c8b6331f2fcb43e4ddaba8950a0b4bf0"
            }
          ],
          "repo": "https://github.com/roocodeinc/roo-code",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c292-qxq4-4p2v"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58374.json"
  },
  "details": "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.",
  "id": "CVE-2025-58374",
  "modified": "2026-04-01T23:10:17.818583990Z",
  "published": "2025-09-06T02:19:40.112Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/RooCodeInc/Roo-Code/pull/7390/files"
    },
    {
      "type": "WEB",
      "url": "https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58374.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-58374"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts"
}