@mastra/code-sdk@1.4.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-aiSource inspection establishes conditional forwarding of existing service credentials to an unrestricted configured gateway. No separate concrete malicious behavior was established, so a warning is appropriate.
Decision evidence
public snapshot- OAuth credentials are loaded from the application's auth.json storage.
- The Codex request wrapper reads the stored OpenAI OAuth access token and inserts it into the authorization header.
- Gateway destinations come from settings or MASTRA_GATEWAY_URL without a destination allowlist; routing requires a gateway key and gateway model selection.
- The gateway model caller disables Codex URL rewriting and sends authenticated requests to the configured gateway.
- The exported agent factory connects model requests to this dynamic model resolution path.
- package.json has no automatic install lifecycle hooks or runtime self-dependency.
- Gateway routing is conditional on configuration and model selection; no covert default credential export was established.
- The inspected browser authentication configuration targets the intended Codex service.
Source & flagged code
4 flaggedPackage source references dynamic require/import behavior.
dist/plugins/loader.jsView on unpkg · L115Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
Findings
Affected versions and remediation
This report applies to @mastra/code-sdk@1.4.0.
See all versions of @mastra/code-sdk for other recorded verdicts.
- Review the evidence and your use of @mastra/code-sdk@1.4.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.