plugin-upgrade
Audited by Socket on Sep 15, 2026
2 alerts found:
SecurityAnomalyNo clear evidence of hidden malware in this fragment (no eval/dynamic payloads, no direct exfiltration/backdoor logic). However, it intentionally installs and runs third-party plugins via external CLI tooling and explicitly states it is not a sandbox; the child processes inherit full user permissions and environment. If rawSpec is untrusted/attacker-controlled, this tool can lead to arbitrary code execution and supply-chain compromise during npm/git/plugin install lifecycle scripts and probe runtime.
No overt malware is evident in this fragment (no network, process execution, credential access, or exfiltration). The dominant security concern is the deliberate use of inline JavaScript (`!!js`) during patch/evaluation time, combined with module resolution and filesystem reads from the target dependency/tag. This creates a powerful supply-chain control-plane primitive; while the current logic looks like deterministic feature/preset gating, it warrants scrutiny of sandboxing and trust boundaries for `ctx.baseUrl` and the evaluation engine.