Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in create-mastra (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 04:55:41 UTC)
Source: GCVE Database
Product: create-mastra

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4da726670223ca28536bc00f5e68f94f22591bdecdb38dd94e5e873fce0afcf2) create-mastra is the Mastra framework's project scaffolder, distributed as a bundled CLI. The flagged signals are generic occurrences of the literal string 'POST' across the minified dist/index.js (lines 245-247, 679, 16066) without corroborating evidence of a hardcoded attacker C2 endpoint, install-time exfiltration, or credential harvest. No install/postinstall lifecycle hooks were identified that would auto-execute network behavior on `npm install`. Keyword co-occurrence in a minified rollup bundle is the weakest evidence shape and is consistent with normal HTTP client code in a CLI scaffolder. Routing for human review to confirm the destinations of those POST calls are documented Mastra endpoints rather than attacker infrastructure. ## Source: ghsa-malware (12df16ee90f6c59f31e4b0b71f2dbf3a0b046e17ecae5e13399b69fec9f3c563) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
create-mastra
Affected versions
=1.13.1

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: 07/10/2026, 09:40:28 UTC

Technical Analysis

The create-mastra package (version 1.13.1) is flagged as malicious by a malware advisory (GHSA-jgwq-x2m5-mxhm). While static analysis from one source noted only generic POST requests without clear attacker infrastructure or auto-executing install hooks, a separate authoritative malware source indicates full system compromise upon installation. This suggests the package contains hidden malicious functionality that can lead to complete control of the host system. No official patch or remediation guidance is provided.

Potential Impact

Systems with create-mastra version 1.13.1 installed may be fully compromised, allowing attackers to gain complete control. All stored secrets and keys on the affected system are at risk and must be rotated from a secure environment. Removing the package alone may not remove all malicious components introduced by the package.

Mitigation Recommendations

Immediate removal of the create-mastra package version 1.13.1 is recommended. All secrets and keys stored on the affected system should be rotated from a different, trusted computer. Due to potential persistent compromise, consider full system remediation or rebuild. No official patch or fix is currently available; monitor vendor advisories for updates.

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-6050
Osv Schema Version
1.7.4
Aliases
["GHSA-jgwq-x2m5-mxhm"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba5068715ace4357eba7

Added to database: 07/10/2026, 09:24:32 UTC

Last enriched: 07/10/2026, 09:40:28 UTC

Last updated: 07/30/2026, 12:11:25 UTC

Views: 7

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