@mastra/code-sdk@1.10.1
Mastra Code SDK: the agent core behind Mastra Code (everything except the TUI) — build your own UIs and surfaces on top of it
AI Security Review
scanned 1mo ago · by lpm-firewall-aiSource establishes conditional forwarding of an existing service token to a configurable destination without an allowlist. This warrants a warning for dangerous credential exposure, while the inspected behavior does not establish malware intent or justify publication blocking.
Decision evidence
public snapshot- The agent entrypoint activates dynamic model resolution.
- Model resolution accepts a gateway URL from settings or MASTRA_GATEWAY_URL without a destination allowlist.
- Gateway forwarding activates when a gateway model is selected and a gateway API key exists.
- The Anthropic OAuth branch connects stored credentials to the configured gateway.
- The OAuth fetch wrapper obtains the Anthropic token, adds a bearer header, and sends it to the supplied URL.
- AuthStorage loads existing credentials from auth.json.
- No npm install lifecycle hooks or runtime self-dependency were found.
- Credential forwarding requires gateway model selection and a gateway API key; no covert default recipient was established.
Source & flagged code
3 flaggedPackage source references dynamic require/import behavior.
dist/plugins/loader.jsView on unpkg · L117Package source executes code through a VM context API.
dist/utils/storage-maintenance.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to @mastra/code-sdk@1.10.1.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.10.1 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.