T08 · Insecure Dependencies
- Location
README.md:30- Finding
Unpinned Remote Packages and Mutable Sources Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md:30README.md:36SKILL.md:18SKILL.md:40-46SKILL.md:124SKILL.md:443-446references/learn.md:59-61references/extended-components.md:533-544
Vulnerability Type: Supply-chain exposure through mutable, unverified dependencies
Risk Level: MediumVulnerable Code
README.md:30:bash npx add https://github.com/wpank/ai/tree/main/skills/frontend/shadcn-uiREADME.md:36andSKILL.md:18:bash npx clawhub@latest install shadcn-uiSKILL.md:40-46:bash npx create-next-app@latest my-app --typescript --tailwind --eslint --app cd my-app npx shadcn@latest init # Install components npx shadcn@latest add button input form card dialog select toast npx shadcn@latest add --all # or install everythingSKILL.md:124:bash npx shadcn@latest add form input select checkbox textareaSKILL.md:443-446:bash npx shadcn@latest init # Initialize project npx shadcn@latest add [component] # Add specific component npx shadcn@latest add --all # Add all components npx shadcn@latest diff # Show upstream changesreferences/learn.md:59-61:markdown - [ ] Run `npx shadcn@latest init` - [ ] Configure CSS variables - [ ] Install first component: `npx shadcn@latest add button`references/extended-components.md:533-544:bash npx shadcn@latest init # Add individual components npx shadcn@latest add terminal npx shadcn@latest add dock npx shadcn@latest add credit-card # Add multiple components at once npx shadcn@latest add bar-chart line-chart pie-chart # Add hooks npx shadcn@latest add use-boolean use-counter use-local-storageTechnical Analysis
The documentation repeatedly instructs users to execute third-party packages with
npx. Several commands explicitly use the mutab ...[truncated 2725 chars]- Remediation
View remediation
Remediation Suggestions
-
Replace every
@latestreference with a specifically reviewed package version, for example:bash npx --yes shadcn@X.Y.Z init npx --yes clawhub@X.Y.Z install shadcn-ui -
Pin repository-based installation sources to an immutable Git commit rather than a mutable branch such as
main. -
Verify that all installation URLs refer to the intended official publisher and repository. Avoid personal or unofficial repositories unless they have been independently reviewed and explicitly trusted.
-
Document integrity-verification procedures, such as checking release signatures, package provenance, or published checksums before execution.
-
Commit generated files and lockfiles to version control, then review the complete diff before building or running the resulting application.
-
Prefer installing reviewed CLI versions as development dependencies and invoking the locked local binary instead of downloading a fresh package during each command.
-
Run scaffolding and component-generation tools in a restricted development container or sandbox without production credentials, sensitive environment variables, or unnecessary host filesystem access.
-
Avoid broad operations such as
add --allunless all generated components and transitive dependencies are required and reviewed.
-
