create-mastra@1.31.3
Create Mastra apps with one command
AI Security Review
scanned 26d ago · by lpm-firewall-aicreate-mastra 1.31.3 is a user-invoked project scaffolder with no npm lifecycle hooks, and the flagged editor MCP path joins are unused expression statements. Login and analytics stay on package-aligned Mastra and PostHog endpoints and are not an install-time attack.
Decision evidence
public snapshot- package.json exposes a create-mastra bin at dist/index.js and its scripts are only build, lint, and test, with no preinstall, install, or postinstall hook.
- Editor MCP path joins around the flagged location in dist/index.js are discarded expression statements and are not passed to a file write.
- Login token checks call the Mastra platform auth verify endpoint with a bearer token from that same login flow.
- The bundled CLI runs its create action only after the user invokes the binary and commander parses process.argv.
- Default CLI telemetry can send host and version fields to PostHog unless MASTRA_TELEMETRY_DISABLED is set.
- MASTRA_PLATFORM_API_URL can override the platform host, but the token is obtained from that same login flow rather than copied from another service.
Source & flagged code
8 flagged · loading sourcePackage source references child process execution.
dist/credentials-Cgc5DcYQ-Cfe8N7V8.jsView on unpkg · L13A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/credentials-Cgc5DcYQ-Cfe8N7V8.js#virtual:normalized:round1View on unpkg · L294Findings
Affected versions and remediation
This report applies to create-mastra@1.31.3.
See all versions of create-mastra for other recorded verdicts.
- Review the evidence and your use of create-mastra@1.31.3 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.