Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in @mastra/agent-browser

Malware was discovered in the npm package @mastra/agent-browser. Systems with this package installed or running should be considered fully compromised and require immediate remediation.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with the package installed or running
Ecosystems
Attack vectors
Affected entities
  • @mastra/agent-browser

A critical malware incident was identified in the npm package @mastra/agent-browser. According to the GitHub Security Advisory (GHSA-ph9v-3f5h-hg6p), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory indicates that all secrets and keys stored on affected computers should be rotated immediately from a different, uncompromised system. While the package should be removed, the advisory notes that full control of the computer may have been given to an outside entity, meaning removal of the package alone may not eliminate all malicious software that resulted from the installation.\n\nThis represents a critical supply chain attack through a compromised npm package affecting the AI agents ecosystem.

Indicators of compromise

Packages
  • @mastra/agent-browser

Remediation

  • Immediately isolate any computer with @mastra/agent-browser installed from the network
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Remove the @mastra/agent-browser package from all systems
  • Perform a full security audit and malware scan on affected systems
  • Review all access logs and activity on affected systems for signs of unauthorized access
  • Consider full system reimaging if the package was installed on production or sensitive systems
  • Update npm dependencies to remove @mastra/agent-browser and verify no malicious replacements are installed

Sources

  1. GitHub Advisory GHSA-ph9v-3f5h-hg6p · GitHub Advisory Database

Cite this entry

"Malware in @mastra/agent-browser." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-agent-browser-ecfqq7

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. activecritical

    Malware in @rafaelsene01/agent-flow

    Malware discovered in the npm package @rafaelsene01/agent-flow. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmAI agents & skillsCompromised package
  2. activecritical

    Malware in @mastra/agent-builder

    Malware was discovered in the npm package @mastra/agent-builder. Systems with this package installed or running should be considered fully compromised and require immediate remediation.

    npmAI agents & skillsCompromised package
  3. activecritical

    Malware in @redhat-cloud-services/hcc-feo-mcp

    Malware in @redhat-cloud-services/hcc-feo-mcp 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

    MiasmanpmAI agents & skillsCompromised package
  4. activecritical

    Malware in @tmecontinue/claude

    Malware in @tmecontinue/claude 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 a

    npmAI agents & skillsCompromised package