@decocms/blocks-cli@7.59.0
Deco codegen (generate-blocks, generate-schema, generate-invoke) and Fresh-to-TanStack migration tooling
AI Security Review
scanned 1mo ago · by lpm-firewall-aiThis release is not malware, but it contains concrete user-invoked command-injection vulnerabilities in published CLI code. The absence of lifecycle hooks limits the attack to explicit CLI use.
Decision evidence
public snapshot- The migration CLI interpolates the user-controlled --branch value into a shell command passed to execSync, enabling command injection when that CLI is run.
- The KV sync CLI also interpolates the user-controlled --since value into execSync without argument separation.
- The package exposes mutable deployment and migration commands, but they are user-invoked rather than install-time.
- The remaining flagged dynamic process execution is confined to test fixtures or an explicit audit CLI.
- package.json contains no preinstall, install, or postinstall lifecycle hook.
- No runtime self-dependency on @decocms/blocks-cli was found.
- The Cloudflare purge request requires explicit purge URL and token options.
Source & flagged code
6 flagged · loading sourcePackage source references child process execution.
scripts/audit-observability-config.test.tsView on unpkg · L309Package source references dynamic require/import behavior.
scripts/audit-observability-config.test.tsView on unpkg · L309Findings
Affected versions and remediation
This report applies to @decocms/blocks-cli@7.59.0.
See all versions of @decocms/blocks-cli for other recorded verdicts.
- Review the evidence and your use of @decocms/blocks-cli@7.59.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.