The skill is vulnerable to prompt injection via untrusted external API content and risks credential leakage by requiring an environment variable accessible to all spawned processes.
Findings (11)
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 returns malicious content, the agent will treat the documentation as instructions to follow, leading to potential prompt injection. [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.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.72)
*
NER model detected organization in skill content (confidence: 0.61)
N**
The skill encourages users to set a CONTEXT7_API_KEY environment variable, which will be accessible to any process or sub-agent spawned by the environment, potentially leading to credential leakage if the API key is reused elsewhere.
export CONTEXT7_API_KEY="your-api-key"