T08 · Insecure Dependencies
- Location
SKILL.md:82- Finding
Unpinned Wrangler Dependency May Execute Unreviewed Registry Code
- Content
View full analysis
- Remediation
View remediation
``` 2. Commit `package.json` and the generated lockfile to source control. 3. Use `npm ci` in automated and security-sensitive environments to enforce the lockfile. 4. Invoke only the installed local binary and prohibit implicit downloads: ```bash npx --no-install wrangler pages deploy dist --project-name=my-project ``` 5. Apply npm provenance, integrity, registry allowlisting, and dependency-scanning controls where available. 6. Use a narrowly scoped Cloudflare API token limited to the necessary account, project, and operations. 7. Avoid exposing the token to installation steps. Install and verify dependencies before exporting deployment credentials. 8. Document and periodically review the approved Wrangler version and dependency tree. ]]>
