@decocms/blocks-cli@7.65.0
Deco codegen (generate-blocks, generate-schema, generate-invoke) and Fresh-to-TanStack migration tooling
AI Security Review
scanned 5d ago · by lpm-firewall-aiThe source confirms shell command injection through the CLI's `--since` argument, so this is a real vulnerability rather than a scanner-only signal. It is reachable through explicit CLI use, and the source does not show automatic install-time execution.
Decision evidence
public snapshot- The package exposes the KV sync script as a CLI command.
- The CLI takes `--since` from its arguments and passes it to `gitChangedFiles`.
- `gitChangedFiles` interpolates `since` into a shell command executed with `execSync`.
- Unless `--all` is set, the sync flow calls `gitChangedFiles`; this creates a command-injection vulnerability when `--since` contains shell syntax.
- The vulnerable code is in an explicit CLI command, and `--all` skips the affected git command.
Source & flagged code
5 flagged · loading sourcePackage source references child process execution.
scripts/audit-observability-config.test.tsView on unpkg · L309A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/sync-blocks-to-kv.tsView on unpkg · L77Findings
Affected versions and remediation
This report applies to @decocms/blocks-cli@7.65.0.
See all versions of @decocms/blocks-cli for other recorded verdicts.
- Review the evidence and your use of @decocms/blocks-cli@7.65.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.