INCIDENT REPORT: 2026-06-16: Mastra hit by supply-chain attack

2026-06-17 Mastra

https://github.com/mastra-ai/mastra/issues/18061

Thumbnail for INCIDENT REPORT: 2026-06-16: Mastra hit by supply-chain attack

A compromised Mastra maintainer account was used to publish 116 malicious npm packages, mostly under the `@mastra/` namespace, with a postinstall script designed to exfiltrate credentials and remove itself. Mastra identified the attack the evening of June 16, 2026, coordinated with npm and Socket Security, unpublished or deprecated the affected versions, and released safe replacements. The compromise originated from social phishing via a compromised LinkedIn account, after which Mastra removed npm token bypass across its packages despite already requiring MFA.

Related Reports

« Back