Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in @mastra/cursor

Malware discovered in the npm package @mastra/cursor. Systems with this package installed are considered fully compromised with potential for complete system control by external entities.

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

A critical malware incident was identified in the npm package @mastra/cursor, published as GitHub Advisory GHSA-cp3h-358p-m8h2 on June 17, 2026.\n\nAccording to the advisory, any computer with this package installed or running should be considered fully compromised. The malware grants external entities potential full control of affected systems.\n\nImmediate remediation requires rotating all secrets and keys from a different, uncompromised computer. While the package should be removed, complete removal of all malicious software cannot be guaranteed due to the level of system compromise.\n\nUsers should assume that removing the package alone may not eliminate all malicious artifacts introduced during installation.

Indicators of compromise

Packages
  • @mastra/cursor

Remediation

  • Immediately rotate all secrets, keys, and credentials from a different, uncompromised computer
  • Remove the @mastra/cursor package from all affected systems
  • Conduct a full security audit and forensic analysis of any system that had this package installed
  • Monitor affected systems for signs of persistent compromise or unauthorized access
  • Consider full system reimaging if complete removal of malware cannot be verified

Sources

  1. GitHub Advisory GHSA-cp3h-358p-m8h2 · GitHub Advisory Database

Cite this entry

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

Suggest a correction

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

  1. activecritical

    Malware in root-locator

    The npm package root-locator contains malware that grants full system compromise to attackers. Any computer with this package installed or running should be considered fully compromised.

    npmCompromised package
  2. resolvedcritical

    Malicious code in cspell-esm (npm)

    cspell-esm, a typosquatting package on npm resembling the legitimate 'cspell' library, contained malicious code delivered through a smuggled off-registry dependency (ltidisafe) hosted on a Google Cloud Storage bucket. Installation triggered execution of lifecycle scripts and code from the attacker-controlled dependency.

    npmCompromised packageTyposquattingDependency confusion
  3. containedcritical

    Malware in path-match-js

    Malware was discovered in the npm package path-match-js. Systems with this package installed are considered fully compromised and require immediate remediation including secret rotation and package removal.

    npmCompromised package
  4. containedcritical

    Malware in react-shield

    The npm package react-shield was found to contain malware, potentially giving attackers full control of affected systems. All systems with this package installed should be considered compromised and require immediate remediation.

    npmCompromised package