Socket Research TeamSupply-chain security researchersSocket
Mastra's @mastra npm packages, published until then only by the project's CI.
Socket blog, published Read the write-up (opens Socket blog in a new tab)
Observation
A single npm account published malicious versions of 141 @mastra packages on June 17, 2026, and Socket advises treating every host that installed one as compromised.
- Takeaway
- Pin every @mastra package from a lockfile and review dependency bot updates, because a compromised release reaches CI within minutes.
- What happened
- A single human npm account published malicious versions of 141 @mastra packages between about 01:15 and 02:36 UTC on Jun 17, 2026 (Socket, Jun 17, 2026). Each added one dependency, easy-day-js, a typosquat of dayjs whose install hook runs an obfuscated payload during npm install.
“If you installed any of the versions above, treat the host or CI runner that ran the install as compromised.”
- Public engineering write-up (Socket threat research blog)
- Package counts reported
Deployment details
Mastra's @mastra npm packages, published until then only by the project's CI.
- Public engineering write-up (Socket threat research blog)
- Package counts reported
- Team
- Every team that installed an affected @mastra version
- Duration
- About 81 minutes of malicious publishing, Jun 17, 2026 UTC
- Workload
- npm installs of @mastra packages in development and CI
- Product version
- Malicious patch releases of @mastra packages
- Measurement
- 141 packages, by Socket's count
In SignalsNot counted. A security vendor's incident analysis, not an account of running Mastra; the team whose dependency bot pulled the versions counts as its own record.









