21st-cli-use
Pass
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: Fetches and installs UI components, themes, and templates from the
21st.devregistry. It also utilizes the@21st-dev/clipackage andshadcnfor installation processes. - [COMMAND_EXECUTION]: Executes shell commands via the
21stCLI andnpxfor searching, pulling code, and installing components. Commands like21st init --writeand21st install-skillperform modifications to the local environment and configuration files. - [DATA_EXFILTRATION]: Accesses sensitive local configuration paths (
~/.config/21st/auth.json) to store and retrieve authentication tokens. It also prompts the use of sensitive environment variables likeTWENTYFIRST_TOKENandAPI_KEY_21ST. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: Reads search results, component code, and theme CSS from the external
21st.devcatalog (SKILL.md). - Capability inventory: Can write files to the project directory (
components/ui/), install NPM dependencies, and execute shell commands through the CLI (SKILL.md). - Boundary markers: The skill does not define specific delimiters or instructions for the agent to ignore potentially malicious instructions embedded in the downloaded component code or metadata.
- Sanitization: Relies on the integrity of the vendor's registry and the standard
shadcncomponent resolution logic.
Audit Metadata