{
  "id": "CVE-2025-58374",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-58374",
  "published_at": "2025-09-06T02:19:40.112Z",
  "title": "Roo Code: Auto-approve allows npm install execution of malicious postinstall scripts",
  "vendor": "RooCodeInc",
  "product": "Roo-Code",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:roocode:roo_code:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "RooCodeInc",
        "product": "Roo-Code",
        "ranges": [
          "\u003c 3.26.0"
        ],
        "fixed_in": [
          "3.26.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Roo-Code to 3.26.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/RooCodeInc/Roo-Code/security/advisories/GHSA-c292-qxq4-4p2v"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/RooCodeInc/Roo-Code/pull/7390/files"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/RooCodeInc/Roo-Code/releases/tag/v3.26.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
