Malicious code in @mastra/agent-builder (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (461931843783efc9abfdb7558cef5fa0e33ee3a66cd3f426490fe26fa12ab04a) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: ghsa-malware (ae994313e5437ca5d75c06e9b875363f20ef1a07c282e7d24dddf1d85dec90d9) 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/agent-builder npm package version 1.0.42 was identified as containing malicious code or relying on a dependency with malicious code. This malicious package can lead to full system compromise, allowing attackers to potentially control the affected computer. The advisory warns that simply uninstalling the package may not remove all malicious components, and all sensitive credentials on the system should be rotated from a secure environment.
Potential Impact
Systems with @mastra/agent-builder version 1.0.42 installed or running are considered fully compromised. Attackers may have gained full control, risking exposure of all secrets and keys stored on the system. The compromise may persist beyond removal of the package, indicating a severe security impact.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of @mastra/agent-builder version 1.0.42 is recommended. All secrets and keys stored on the affected system must be rotated immediately using a different, uncompromised computer. Due to potential persistent compromise, consider full system remediation or rebuild to ensure removal of all malicious components.
Malicious code in @mastra/agent-builder (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (461931843783efc9abfdb7558cef5fa0e33ee3a66cd3f426490fe26fa12ab04a) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: ghsa-malware (ae994313e5437ca5d75c06e9b875363f20ef1a07c282e7d24dddf1d85dec90d9) 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/agent-builder npm package version 1.0.42 was identified as containing malicious code or relying on a dependency with malicious code. This malicious package can lead to full system compromise, allowing attackers to potentially control the affected computer. The advisory warns that simply uninstalling the package may not remove all malicious components, and all sensitive credentials on the system should be rotated from a secure environment.
Potential Impact
Systems with @mastra/agent-builder version 1.0.42 installed or running are considered fully compromised. Attackers may have gained full control, risking exposure of all secrets and keys stored on the system. The compromise may persist beyond removal of the package, indicating a severe security impact.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of @mastra/agent-builder version 1.0.42 is recommended. All secrets and keys stored on the affected system must be rotated immediately using a different, uncompromised computer. Due to potential persistent compromise, consider full system remediation or rebuild to ensure removal of all malicious components.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5997
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-hj75-mc88-g6xc"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba5068715ace4357ebdc
Added to database: 07/10/2026, 09:24:32 UTC
Last enriched: 07/10/2026, 09:41:29 UTC
Last updated: 07/24/2026, 16:29:09 UTC
Views: 28
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.