The skill is vulnerable to prompt injection via untrusted external API content and insecurely handles API keys, risking credential exposure through environment variable persistence.
Findings (8)
Content Injection
Hightargets Perception
The skill fetches documentation content from an external REST API and instructs the agent to process it. If the API response contains malicious instructions, the agent will execute them as part of its workflow. [ensemble: confirmed by 3/3 passes; severity set to the agreed median (ADR-0067).]
scripts/context7.sh docs "<library-id>" "<topic>" "<mode>"
Behavioural Control
Mediumtargets Action
NER model detected organization in skill content (confidence: 0.56)
A**
NER model detected organization in skill content (confidence: 0.63)
D*******
NER model detected organization in skill content (confidence: 0.80)
L******
NER model detected organization in skill content (confidence: 0.99)
M**
Code contains network access patterns (HTTP requests, socket connections).
NER model detected organization in skill content (confidence: 0.71)
*
The skill encourages users to set a 'CONTEXT7_API_KEY' environment variable, which may be persisted in shell history or environment files, potentially exposing the key to other processes or logs.
export CONTEXT7_API_KEY="your-api-key"