The skill is vulnerable to prompt injection via untrusted external API content and risks the exfiltration of sensitive environment variables through insecure configuration practices.
Findings (12)
Content Injection
Hightargets Perception
The skill fetches documentation content from an external REST API and presents it to the agent for processing. If the API is compromised or malicious, it can inject instructions into the agent's context, leading to arbitrary command execution or data exfiltration. [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.50)
O*
NER model detected organization in skill content (confidence: 0.51)
D*******
NER model detected organization in skill content (confidence: 0.54)
D***
NER model detected organization in skill content (confidence: 0.55)
R*
NER model detected organization in skill content (confidence: 0.59)
N*****
NER model detected organization in skill content (confidence: 0.76)
L******
NER model detected organization in skill content (confidence: 0.92)
M**
Code contains network access patterns (HTTP requests, socket connections).
NER model detected organization in skill content (confidence: 0.71)
*
NER model detected organization in skill content (confidence: 0.60)
N**
The skill encourages users to set a CONTEXT7_API_KEY environment variable, which could be exfiltrated if the agent is compromised or if the script logs environment variables to an external endpoint.
export CONTEXT7_API_KEY="your-api-key"