shadcn
Warn
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: MEDIUMDYNAMIC_CONTEXT_INJECTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The file
SKILL.mdcontains a shell commandnpx shadcn@latest info --jsonwithin the dynamic context syntax (!command). This command executes automatically when the skill is initialized to provide project metadata. While the command itself is used for discovery, the use of dynamic context for silent shell execution is a potential security concern. - [REMOTE_CODE_EXECUTION]: The skill provides instructions for the agent to download and install code from external sources using the
shadcnCLI. This includes community registries and arbitrary GitHub repositories specified by the user (e.g.,owner/repo/item). Although theshadcntool is well-known, the content added from non-official repositories is unverified. The skill mitigates this risk by instructing the agent to perform audits using--dry-run,--diff, and--viewflags before finalizing installations. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process external or user-provided data, specifically
DESIGN.mdfiles and documentation content fetched from remote URLs. This creates a surface for indirect prompt injection where malicious instructions embedded in a design specification or registry documentation could influence the agent's behavior during the design system creation process. - Ingestion points: Reads and processes the content of
DESIGN.md(root directory) and documentation/example code fetched vianpx shadcn@latest docs. - Boundary markers: No explicit delimiters or ignore-instructions are used when processing the contents of design specifications.
- Capability inventory: The skill has access to the
Bashtool for running CLI commands and script execution, as well as file system operations for editing project files. - Sanitization: The skill relies on the agent's interpretation of the design documents without pre-processing or validation of the input content.
- [COMMAND_EXECUTION]: The skill frequently executes the
shadcnCLI through package runners such asnpx,pnpm dlx, andbunxto manage project initialization, component installation, and theme application. These operations involve structural changes to the project and modification of configuration files.
Audit Metadata