CriticalVulnerability
MAL-2026-6011: Malicious code in @mastra/core (npm)
- Source
- OSV(opens in a new tab)
- Published
- Record updated
- Affected
- @mastra/core = 1.42.1
- Fixed in
- No fixed version was stated when the source was last read.
Summary
Malicious code was found in the npm package @mastra/core, according to the Amazon Inspector and GHSA malware sources. The advisory states that any computer with this package installed or running should be considered fully compromised.
Mitigation
All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but removing it may not remove all malicious software resulting from installing it.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- @mastra/corenpmLLM dependency since 2024-10-02
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database