T08 · Insecure Dependencies
- Location
references/tools-catalog.md:43- Finding
Unpinned Package Runner Retrieves Component Code from a Mutable Third-Party Source
- Content
View full analysis
Vulnerability Details
File Location:
references/tools-catalog.md:43
Vulnerability Type: Supply-chain risk through an unpinned executable package and mutable remote component source
Risk Level: MediumComplete Code Snippet:
md ### Hit Area Utilities (bazza.dev) Tailwind classes expanding clickable areas without affecting visual layout. Install: `npx shadcn@latest add https://bazza.dev/r/hit-area` Classes: `hit-area-6`, `hit-area-x-4`, `hit-area-l-8`, `hit-area-debug`Technical Analysis
The recommended command combines two mutable supply-chain inputs:
npx shadcn@latestdownloads and runs whichever package release currently owns thelatestnpm distribution tag.https://bazza.dev/r/hit-areasupplies component content from a third-party URL without a pinned revision or integrity digest.
Consequently, the code executed or installed when a user follows this guidance may differ from the content that was available when the Skill was audited. An attacker who compromises the npm package, maintainer account, package distribution tag, remote domain, hosting infrastructure, or registry response could cause the command to execute or install attacker-controlled code.
The Skill's declared purpose is frontend design and UI engineering guidance. Automatically running a mutable package installer and importing unverified remote code is not necessary to provide that functionality and therefore exceeds the minimum privileges required.
Attack Path
- An attacker compromises the npm package, its publishing credentials, the
latestdistribution tag, thebazza.devdomain, or the remote component registry. - The attacker publishes a malicious package release or replaces the remote
hit-areacomponent response with malicious content. - A user or agent follows the Skill's installation recommendation.
npxdownloads and executes the currently tagged package rather than a previously aud ...[truncated 1184 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an explicitly audited package version, such asshadcn@x.y.z. - Pin the component source to an immutable commit or versioned registry artifact rather than a mutable URL.
- Verify downloaded content using a published cryptographic checksum or signature.
- Prefer vendoring the reviewed component source directly in the Skill documentation so users can inspect it before adding it to a project.
- Instruct users to retrieve and review generated files before running builds, tests, or application code.
- Use lockfiles and reproducible installation mechanisms in downstream projects.
- Run third-party installers in a restricted environment without production credentials, sensitive environment variables, or unnecessary filesystem access.
- Document the exact expected files and changes so unexpected installer behavior can be detected.
- Replace
