mastra-api-cli
Warn
Audited by Snyk on Jul 7, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (high risk: 0.75). SKILL.md’s required workflow includes running
mastra api ... --schemaand bounded live probes likemastra api ... log list ... | jq ..., which ingests outsider-authored free text from the target server’s responses (e.g., log messages, agent/tool definitions) into the agent’s LLM context.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.90). The skill issues runtime requests to the target server (e.g., "$MASTRA_URL/api/system/api-schema" and various mastra api --url "$MASTRA_URL" agent/tool endpoints) and the doc explicitly warns that servers may return full agent/tool definitions including long instructions/schemas which can directly control agent prompts, so this is a runtime dependency that can inject instructions.
Issues (2)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata