Malware in @mastra/cloudflare
Malware was discovered in the npm package @mastra/cloudflare. Systems with this package installed are considered fully compromised and require immediate remediation including credential rotation and package removal.
- Disclosed
- Last updated
- Blast radius
- Any system with @mastra/cloudflare installed
- Ecosystems
- Attack vectors
- Affected entities
- @mastra/cloudflare
A critical malware incident was identified in the npm package @mastra/cloudflare, published via GitHub Advisory GHSA-fx8h-6h58-674x on June 17, 2026.\n\nAny computer with this package installed or running should be considered fully compromised. The malware grants outside entities full control of affected systems, allowing potential access to all stored secrets and keys.\n\nImmediate remediation is required: all secrets and keys should be rotated from a different, unaffected computer. While the package should be removed, complete removal of all malicious software cannot be guaranteed due to the level of system compromise achieved.\n\nUsers should assume that removing the package alone is insufficient to fully remediate the compromise.
Indicators of compromise
- Packages
- @mastra/cloudflare
Remediation
- Immediately rotate all secrets, API keys, and credentials from a different, unaffected computer
- Remove the @mastra/cloudflare package from all affected systems
- Perform a full security audit and malware scan of any system that had this package installed
- Review access logs and audit trails for any unauthorized activity during the period the package was installed
- Consider full system reimaging if the package was installed on production or sensitive systems
- Monitor for any signs of persistent malware or unauthorized access following remediation
Sources
- GitHub Advisory GHSA-fx8h-6h58-674x · GitHub Advisory Database
Cite this entry
"Malware in @mastra/cloudflare." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-cloudflare-oavzeh
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- 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 - 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 - 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 - 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