mastraqqq (npm) · Malicious Code
Affects mastraqqqSource GCVE Database
Malicious package : remove mastraqqq and rotate any secrets on hosts that installed it.
Data as of 14 Aug 2026, 16:47 UTC
Malicious package
Published to npm · OSV MAL-2026-5913
What to do
Remove mastraqqq from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmastraqqq | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'mastraqqq' is a malicious typosquatting package that impersonates the legitimate 'mastra' CLI by bundling an identical clone of its code and metadata. It adds an unrelated, never-imported dependency 'caspian-day-js', which serves as a hidden payload. Installing 'mastraqqq' silently pulls in this attacker-controlled dependency, potentially compromising the system. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate all malicious components.