Skip to content
CriticalVulnerability

MAL-2026-6011: Malicious code in @mastra/core (npm)

Published
Record updated
View JSON
Affected
  • @mastra/core = 1.42.1
Fixed in
No fixed version was stated when the source was last read.

Summary

Malicious code was found in the npm package @mastra/core, according to the Amazon Inspector and GHSA malware sources. The advisory states that any computer with this package installed or running should be considered fully compromised.

Mitigation

All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but removing it may not remove all malicious software resulting from installing it.