Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in @mastra/google-cloud-pubsub

Malware was discovered in the npm package @mastra/google-cloud-pubsub. Systems with this package installed or running are 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/google-cloud-pubsub

A malware incident was identified in the npm package @mastra/google-cloud-pubsub. According to the GitHub Security Advisory (GHSA-wv5r-22mx-vfr8), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the package compromise.\n\nThis represents a critical supply chain attack through a compromised npm package with potential for widespread impact across all systems that have installed or executed it.

Indicators of compromise

Packages
  • @mastra/google-cloud-pubsub

Remediation

  • Immediately rotate all secrets and keys from a different, uncompromised computer
  • Remove the @mastra/google-cloud-pubsub package from all affected systems
  • Conduct a full security audit of any system that had this package installed or running
  • Monitor for signs of unauthorized access or malicious activity on affected systems
  • Consider the affected system(s) as potentially fully compromised and plan for complete rebuild if critical infrastructure

Sources

  1. GitHub Advisory GHSA-wv5r-22mx-vfr8 · GitHub Advisory Database

Cite this entry

"Malware in @mastra/google-cloud-pubsub." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-google-cloud-pubsub-1x5v6f

Suggest a correction

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

  1. activecritical

    Malware in internallib_v688

    Malware discovered in the npm package internallib_v688. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package
  2. containedcritical

    Malicious code in @zzzgenesis00/bip39-generator (npm)

    The npm package @zzzgenesis00/bip39-generator version 3.1.2 was identified as malicious by the OpenSSF Package Analysis project. The package communicates with a domain associated with malicious activity.

    npmCompromised package
  3. containedcritical

    Malware in accounts-final-form

    The npm package accounts-final-form contained malware, potentially giving outside entities full control of affected systems. All systems with this package installed should be considered fully compromised.

    npmCompromised package
  4. containedcritical

    Malicious code in simple-date-formatter-new-1 (npm)

    The npm package simple-date-formatter-new-1 version 1.0.0 was identified as malicious by the OpenSSF Package Analysis project. The package communicates with domains associated with malicious activity and executes commands associated with malicious behavior.

    npmCompromised package