high severityConfidence highHistorical record

Mastra AI framework npm compromise

Direct answer

Mastra AI framework npm compromise, also tracked as Mastra AI framework compromise is a high-severity threat campaign HOL Guard tracked from Jun 17, 2026 to Jun 17, 2026, verified against 1 primary source and last reviewed Sep 13, 2026. Active tracking has ended and the record remains published as a permanent historical research record.

Socket documented a June 2026 compromise of more than 140 packages in the @mastra npm scope where a typosquatted dependency with a postinstall payload was injected into published package manifests.

Also tracked as Mastra AI framework compromise

First observed
Jun 17, 2026
Last observed
Jun 17, 2026
Last reviewed
Sep 13, 2026
Tracking ended
Sep 8, 2026

Uncertainty and limitations

Read the evidence limits before acting on this record.

This record uses the reviewed June 17 investigation and does not infer the total number of affected developer machines or credentials from package download counts.

  • Treat lockfile review, registry advisories, secret rotation, and endpoint investigation as complementary controls.

Guard coverage and policy

What Guard's reviewed assertions do and do not claim for this campaign, and the reviewed starting points for defense.

Not covered, or partially covered

  • partial

    Guard can require review for eligible dependency installation actions, but the stable manifest does not claim complete coverage for every transitive resolver path or already-running postinstall payload.

  • Recipe available

    Require review or explicit approval for new or changed dependency installation before an eligible package-manager action executes.

    Coverage depends on the active Guard release, package manager, harness event surface, and local policy. It is not a guarantee that every dependency path is intercepted.

Safe next step. Campaign guidance is defensive context. It does not auto-apply policy or claim universal campaign coverage.

Timeline

Reviewed events, oldest first, each tied to a verified source.

  1. First observed

    Mastra AI framework npm compromise was first observed in the reviewed source material.

    Source:Socket: Mastra npm package compromise

  2. Disclosure

    The reviewed source published or updated its defensive analysis and remediation guidance.

    Source:Socket: Mastra npm package compromise

Publication clock: 1280.9 hours from reviewed disclosure timestamp to HOL publication; 24-hour high target; historical backfill outside target.

Reviewed artifacts

The specific artifacts this record concerns, as reviewed. Names and versions are shown as text; a registry link is not recorded here.

  • @mastra/* affected releasesnpmpackage
  • easy-day-js@1.11.22npmpackage

Sources

Every claim on this record is traceable to the sources below.

Campaign questions, answered

Socket documented a June 2026 compromise of more than 140 packages in the @mastra npm scope where a typosquatted dependency with a postinstall payload was injected into published package manifests. HOL Guard tracked the campaign from Jun 17, 2026 to Jun 17, 2026.

No. Active tracking ended Sep 8, 2026; this page remains as a labeled historical research record and does not imply the threat is currently active.

The record cites 1 primary source, names 2 reviewed artifacts, and was last fully reviewed Sep 13, 2026 by HOL Guard Research. Its uncertainty and limitations are stated on the record itself.

Campaign guidance is defensive context. It does not auto-apply policy or claim universal campaign coverage. The campaign-specific policy starting point is linked from the coverage section of this record.

The permalink above is permanent. The full record can be downloaded from this page as JSON, an artifact CSV, and a STIX 2.1 bundle, and corrections can be requested through the published correction path on the record. This record uses the reviewed June 17 investigation and does not infer the total number of affected developer machines or credentials from package download counts.

Reviewed in full by HOL Guard Research.

Published
Last full review
Last modified

Report a correction

Record HGTC-2026-MASTRAAI26