T08 · Insecure Dependencies
- Location
SKILL.md:38- Finding
Unpinned npm and npx Packages Allow Mutable Third-Party Code Execution
- Content
View full analysis
- Remediation
View remediation
my-video npx create-vite@ my-video ``` 2. Pin exact dependency versions rather than relying on mutable ranges: ```bash npm install --save-exact remotion@ npm install --save-dev --save-exact @remotion/cli@ ``` 3. Include a reviewed `package-lock.json` and recommend `npm ci` for reproducible installation. 4. Review dependency provenance, package ownership, lifecycle scripts, and published integrity information before updating pinned versions. 5. Where feasible, inspect packages without running lifecycle scripts first: ```bash npm install --ignore-scripts ``` Enable required scripts only after review, recognizing that disabling scripts may affect legitimate installation behavior. 6. Apply the same version pinning to every repeated command at `SKILL.md:301,322,331,339`. 7. Run package installation in an isolated, least-privileged development environment without production credentials or unrelated secrets. ]]>
