T08 · Insecure Dependencies
- Location
optimization.md:55- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
- Remediation
View remediation
``` 2. Commit the generated lockfile and use reproducible installation commands such as: ```bash npm ci ``` 3. Invoke the lockfile-backed local executable and prevent network fallback where supported: ```bash npm exec --offline -- svgo icon.svg ``` 4. Review dependency updates before changing the pinned version. Verify package provenance, integrity metadata, maintainership, and transitive dependency changes. 5. Run optimization tools in a restricted environment with no unnecessary credentials, secrets, or write access to unrelated directories. 6. Update the documentation so it does not encourage direct execution of an unpinned registry package. ]]>
