Skip to main content

Malicious code in mastraqqq (npm)

0
Critical
Published: 06/16/2026 (06/16/2026, 18:54:13 UTC)
Source: GCVE Database
Product: mastraqqq

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.

Affected software

npmghsa
mastraqqq
Affected versions
=1.13.1=1.13.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:47:29 UTC

Technical Analysis

The 'mastraqqq' npm package is a typosquatting attack that clones the legitimate 'mastra' CLI version 1.13.0, including its metadata and README, but adds a covert dependency 'caspian-day-js@^1.11.22' that is never imported in the package code. This extra dependency is attacker-controlled and is smuggled into the consumer's install graph under the guise of the legitimate package, representing a canonical namespace abuse delivery method. The presence of this package indicates a full system compromise risk, as the attacker may have gained control beyond the package itself.

Potential Impact

Any system with 'mastraqqq' version 1.13.0 or 1.13.1 installed should be considered fully compromised. The attacker-controlled dependency may execute malicious code, potentially exposing all stored secrets and keys. Immediate secret/key rotation is required from a clean environment. Removing the package does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.

Mitigation Recommendations

Remove the 'mastraqqq' package immediately. Rotate all secrets and keys from a different, uncompromised computer. Because full system compromise is possible, conduct a thorough investigation and remediation beyond just uninstalling the package. No official patch or fix exists as this is a malicious package impersonation; avoid installing packages with suspicious or similar names to legitimate ones.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5913
Osv Schema Version
1.7.4
Aliases
["GHSA-7vj9-63m9-3x7f"]
Ecosystems
["npm"]

Threat ID: 6a7f43f1bf8831d5395d765a

Added to database: 08/14/2026, 16:36:01 UTC

Last enriched: 08/14/2026, 16:47:29 UTC

Last updated: 09/25/2026, 06:19:56 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses