plugin-upgrade
Audited by Socket on Oct 30, 2026
2 alerts found:
SecurityAnomalyThis is a plugin verification utility, not an evident credential-stealing payload; it uses a synthetic API key and a dead local model endpoint. Its significant security risk is intentional execution of the supplied plugin and possible package lifecycle/build scripts with the user's inherited environment and full filesystem/network permissions, including `DSH_PERMISSION_MODE=danger-full-access`; the code explicitly warns that it is not a sandbox. Run only in a genuinely isolated container when the plugin is untrusted.
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.