UTC

@mastra npm scope compromise

A maintainer's npm account with rights across the @mastra scope was taken over and used to publish new versions of more than 140 Mastra packages. Each added one dependency, easy-day-js, a lookalike of dayjs whose malicious release installed a remote-access implant aimed at credentials, browser data and wallets.

First seen
2026-06-17
Disclosed
2026-06-17
Affected packages
7
Attributed to
Sapphire Sleet, according to Microsoft Threat Intelligence

What to do

Remove easy-day-js and pin to releases from before 2026-06-17 (Microsoft names mastra 1.13.0 and @mastra/core 1.42.0) or to Mastra's later clean releases. Treat any machine or CI runner that installed @mastra packages that day as compromised and rotate its credentials. Installing with lifecycle scripts disabled limits this kind of attack.

Check a lockfile for these releases →
Affected releases
PackageRegistryVersions
easy-day-jsnpm1.11.22
mastranpm1.13.1
@mastra/corenpm1.42.1
create-mastranpm1.13.1
@mastra/mcpnpm1.10.1
@mastra/mcp-docs-servernpm1.1.47
@mastra/mcp-registry-registrynpm1.0.2

Written up from the sources above and last checked on 2026-11-18. ShieldMap describes what was affected and what to do; it does not publish the malicious code or how it worked. Report a correction to [email protected].