T08 · Insecure Dependencies
- Location
SKILL.md:86- Finding
Unpinned Third-Party Packages Are Retrieved and Executed
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:29SKILL.md:86guides/01-installation.md:14guides/01-installation.md:50-72guides/03-advanced-usage.md:4-15guides/03-advanced-usage.md:70troubleshooting.md:13troubleshooting.md:17
Vulnerability Type: T08: Insecure Dependencies
Risk Level: MediumVulnerable Code Snippets:
SKILL.md:86andguides/01-installation.md:14:bash npx create-video@latestguides/01-installation.md:50-72:bash # Lambda rendering (AWS) npm install @remotion/lambda # Google Cloud Run rendering npm install @remotion/cloudrun # Caption support npm install @remotion/captions # Google Fonts npm install @remotion/google-fonts # GIF support npm install @remotion/gif # Lottie animation npm install @remotion/lottie # Media utilities npm install @remotion/media-utils # ElevenLabs speech synthesis npm install @remotion/elevenlabsguides/03-advanced-usage.md:4-15:bash # Install the Lambda package npm install @remotion/lambda # Configure AWS credentials export AWS_ACCESS_KEY_ID=your_key export AWS_SECRET_ACCESS_KEY=your_secret export AWS_REGION=us-east-1 # Deploy the Lambda function and S3 bucket npx remotion lambda sites create --site-name=my-video npx remotion lambda functions deployguides/03-advanced-usage.md:70:bash npx ts-node scripts/batch-render.tstroubleshooting.md:13-17:bash npm cache clean --force npx create-video@latest # Or specify a version npx create-video@4 my-projectTechnical Analysis
The documentation directs an AI agent or user to retrieve and execute npm packages without pinning them to exact, reviewed versions. Commands using
npxmay download and immediately execute a package when a suitable local version is unavailable. Thelatestdistribution tag can resolve to different package co ...[truncated 2514 chars]- Remediation
View remediation
Remediation Suggestions
-
Replace
latest, major-only, and unconstrained package references with exact versions that have been reviewed:bash npx --yes create-video@EXACT_REVIEWED_VERSION npm install --save-exact @remotion/lambda@EXACT_REVIEWED_VERSION -
Declare all required tools and libraries in
package.json, generate a lockfile, commit it, and use reproducible installation:bash npm ci -
Invoke locally installed binaries rather than allowing
npxto resolve and download missing packages dynamically:bash npm exec --offline -- remotion studio npm exec --offline -- remotion lambda functions deploy -
Pin transitive dependency resolutions through the lockfile and review lockfile changes before upgrades.
-
Verify package provenance, publisher identity, registry source, integrity metadata, and lifecycle scripts before approving a new version.
-
Consider disabling installation scripts during dependency acquisition where compatible:
bash npm ci --ignore-scriptsAny required scripts should then be reviewed and run explicitly.
-
Run package installation and rendering in an isolated, non-privileged environment with restricted filesystem and network access.
-
Use short-lived AWS credentials with least-privilege IAM policies. Do not expose broad or long-lived credentials to package installation processes.
-
Separate dependency installation from cloud deployment so that an npm lifecycle script cannot automatically inherit deployment credentials.
-
Add an automated dependency review process, vulnerability scanning, and controlled update policy for every pinned version change.
-
