context7-cli
Warn
Audited by Gen Agent Trust Hub on Apr 25, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill provides instructions for downloading and installing AI coding skills from arbitrary third-party GitHub repositories using the
ctx7 skills install /owner/repocommand. This creates a significant attack vector where unvetted markdown instructions or scripts can be introduced into the agent's core operating directory (e.g.,~/.claude/skills). - [COMMAND_EXECUTION]: The skill requires the execution of multiple system-level commands, including global installation of the CLI (
npm install -g ctx7) and interactive setup commands (ctx7 setup) that modify IDE and agent configuration files like.mcp.jsonor.cursor/mcp.json. - [DATA_EXFILTRATION]: The commands
ctx7 libraryandctx7 docstransmit user-supplied queries to external Context7 servers. While the documentation contains explicit warnings to avoid including sensitive data like API keys or PII, this functionality represents a potential surface for data exposure via the query parameters. - [PROMPT_INJECTION]: The skill functions as an ingestion point for external content (documentation and third-party skills). The
ctx7 docscommand fetches snippets from a remote registry which are then processed by the agent; if this external content contains malicious instructions disguised as documentation, it could influence agent behavior (Indirect Prompt Injection). There are no clear boundary markers or sanitization steps documented to mitigate this risk beyond general warnings.
Audit Metadata