T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Vercel CLI Execution Through npx
- Content
View full analysis
- Remediation
View remediation
link npx --yes vercel@ git connect printf '%s' 'value' | npx --yes vercel@ env add VAR_NAME production npx --yes vercel@ domains ls ``` 2. Prefer declaring the CLI in the project's development dependencies and committing the package lockfile: ```bash npm install --save-dev --save-exact vercel@ npm ci npm exec --offline -- vercel link ``` 3. Review the resolved package and transitive dependencies before approving version changes. Use lockfile integrity metadata and automated dependency scanning. 4. Use a trusted npm registry and verify that project or user npm configuration cannot redirect the package name to an untrusted source. 5. Run deployment tooling with least-privilege credentials. Limit Vercel tokens to only the projects and operations required, and avoid exposing unrelated secrets in the invoking environment. ]]>
