Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @mastra/agent-builder (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 05:06:28 UTC)
Source: GCVE Database
Product: @mastra/agent-builder

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

npmghsa
@mastra/agent-builder
Affected versions
=1.0.42

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

AILast updated: 07/10/2026, 09:41:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses