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 @mastra/express (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 04:56:20 UTC)
Source: GCVE Database
Product: @mastra/express

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9cd00df32d6d56cd3d4996965ed13e18c1da3a9b0007392b4fc14da1a8fcbb46) The package's bundled distribution files (dist/index.cjs and dist/index.js) contain a `Buffer.from(..., 'base64').toString('utf-8')` decode pattern. This pattern by itself is benign and extremely common in JavaScript bundles — used for inline data URIs, JWT segment parsing, encoded SVG/PNG assets, configuration constants, and similar legitimate purposes. No corroborating evidence of credential theft, exfiltration, dropper behavior, lifecycle-script abuse, or hardcoded attacker infrastructure was observed. The match is on a single keyword pattern in a bundled main module with no traced harmful execution path. ## Source: ghsa-malware (c7375ba72b0d9da5bf4d20ab526cb654b97310e39965bea22eb5d3d0557961d4) 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
@mastra/express
Affected versions
=1.3.31

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:41:24 UTC

Technical Analysis

The @mastra/express npm package version 1.3.31 includes bundled distribution files that contain a benign-looking base64 decode pattern. Despite the absence of direct evidence of malicious execution paths or attacker infrastructure, the package is classified as malicious by the GHSA-malware source. Systems with this package installed should be treated as fully compromised, as the package may grant attackers full control. There is no vendor advisory or patch available, and no known exploits in the wild have been reported.

Potential Impact

Any computer with @mastra/express version 1.3.31 installed or running is considered fully compromised. Attackers may have gained full control over the system, risking exposure of all stored secrets and keys. Removal of the package alone may not eliminate all malicious software introduced by the compromise.

Mitigation Recommendations

Remove the @mastra/express package version 1.3.31 immediately. Rotate all secrets and keys stored on the compromised system from a separate, trusted computer. Because full system compromise is possible, consider rebuilding or thoroughly cleaning the affected systems. No official patch or fix is available; remediation relies on removal and secret rotation.

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-6022
Osv Schema Version
1.7.4
Aliases
["GHSA-r6w3-xpw9-p9g6"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba5068715ace4357ebd8

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

Last enriched: 07/10/2026, 09:41:24 UTC

Last updated: 07/21/2026, 17:26:18 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