Mastra AI Framework npm Packages Compromised in Supply Chain Attack

Thumbnail Image

The information displayed in the AIM should not be reported as representing the official views of the OECD or of its member countries.

Attackers compromised a contributor account to poison 144 npm packages in the Mastra AI framework, widely used for building AI applications. The attack introduced malicious dependencies, threatening the security of user environments and organizations relying on these AI tools. Users are advised to downgrade and use lockfiles.[AI generated]

Why's our monitor labelling this an incident or hazard?

The Mastra AI framework is an AI system used to build AI agents and workflows, and the attack poisoned its npm packages, which are integral to AI development. The malicious dependency introduced by attackers led to compromised user environments, which is a direct harm to property and potentially to communities relying on these AI tools. The attack exploited the AI system's development and use phases by injecting malicious code into the supply chain, causing realized harm. Therefore, this qualifies as an AI Incident rather than a hazard or complementary information, as harm has already occurred due to the AI system's compromised components.[AI generated]
AI principles
Robustness & digital securityAccountability

Industries
Digital securityIT infrastructure and hosting

Affected stakeholders
ConsumersBusiness

Harm types
Economic/PropertyReputational


Articles about this incident or hazard