T08 · Insecure Dependencies
- Location
SKILL.md:71- Finding
Unpinned npm Package Execution Through a Persistent Third-Party Registry
- Content
View full analysis
- Remediation
View remediation
``` 3. Verify the package's published integrity, provenance, maintainers, and expected repository before installation. 4. Prefer a project-local installation with a committed lockfile rather than a global installation. 5. Do not use `npx -y` for unreviewed packages because it combines automatic approval, retrieval, and immediate execution. 6. If a registry override is unavoidable, apply it only to the individual command: ```bash npm install --registry=https://registry.npmjs.org @deepseek-ai/dsh@ ``` 7. Preserve and restore the user's original npm registry configuration after any temporary change. 8. Obtain explicit user confirmation before downloading or executing third-party code. 9. Avoid elevated execution and ensure npm installation occurs under a least-privileged user account. ]]>
