Malicious code in @mastra/core (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (89ab661f926db8827cca977fedce8cae92cf025babad8825c2e43467121a5c26) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: ghsa-malware (6e8680eac7ec33969a40c073263f4306e4bcd6317a6b4fae468d8bedec10397c) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The @mastra/core package at version 1.42.1 was identified as containing malicious code or relying on a malicious dependency. According to sources including Amazon Inspector and GHSA malware advisories, any system with this package installed or running should be considered fully compromised. The malicious code may allow an attacker full control over the system, necessitating immediate secret and key rotation from a secure environment. There is no known patch or fixed version available, and removal of the package alone may not eliminate all malicious components.
Potential Impact
Systems with @mastra/core version 1.42.1 installed are at risk of full compromise. Attackers may gain complete control over the affected computer, potentially accessing or exfiltrating sensitive information such as secrets and keys. The compromise is severe enough that simply uninstalling the package does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Remove the @mastra/core package version 1.42.1 immediately. Rotate all secrets and keys stored on the compromised system from a different, trusted machine. Because full system compromise is likely, consider rebuilding or thoroughly cleaning the affected system. No official patch or fixed version is currently available; monitor vendor advisories for updates.
Malicious code in @mastra/core (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (89ab661f926db8827cca977fedce8cae92cf025babad8825c2e43467121a5c26) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: ghsa-malware (6e8680eac7ec33969a40c073263f4306e4bcd6317a6b4fae468d8bedec10397c) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @mastra/core package at version 1.42.1 was identified as containing malicious code or relying on a malicious dependency. According to sources including Amazon Inspector and GHSA malware advisories, any system with this package installed or running should be considered fully compromised. The malicious code may allow an attacker full control over the system, necessitating immediate secret and key rotation from a secure environment. There is no known patch or fixed version available, and removal of the package alone may not eliminate all malicious components.
Potential Impact
Systems with @mastra/core version 1.42.1 installed are at risk of full compromise. Attackers may gain complete control over the affected computer, potentially accessing or exfiltrating sensitive information such as secrets and keys. The compromise is severe enough that simply uninstalling the package does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Remove the @mastra/core package version 1.42.1 immediately. Rotate all secrets and keys stored on the compromised system from a different, trusted machine. Because full system compromise is likely, consider rebuilding or thoroughly cleaning the affected system. No official patch or fixed version is currently available; monitor vendor advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6011
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-pp62-grrw-hvfp"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba6168715ace4357f0f5
Added to database: 07/10/2026, 09:24:49 UTC
Last enriched: 07/10/2026, 09:46:00 UTC
Last updated: 07/29/2026, 04:36:13 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.