@mastra/code-sdk@1.10.0
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-aiStatic source inspection establishes conditional forwarding of existing service credentials to an unrestricted configured gateway. The explicit routing gate and absence of concrete malicious behavior support a warning rather than a publication block.
Decision evidence
public snapshot- The active agent entrypoint delegates model selection to the dynamic model resolver.
- The resolver accepts a gateway URL from settings or MASTRA_GATEWAY_URL without a destination allowlist.
- Gateway routing requires both a gateway key and a gateway-prefixed model selection.
- The gateway sends Anthropic OAuth models to its configured URL using the OAuth fetch adapter.
- The adapter retrieves the stored Anthropic token and sends it as a bearer credential to the supplied URL.
- Credentials are loaded from the application's auth.json; package.json has no registry install hooks.
- Gateway forwarding is conditional on model selection and gateway authentication.
- No covert recipient, malicious install behavior, or malware intent was established.
Source & flagged code
4 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.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.10.0 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.