npm package report

Is @mastra/koa safe?

Version 1.5.14 of @mastra/koa was compromised. Other versions are not flagged as malicious.

Do not install @mastra/koa 1.5.14

CRITICAL

Compromised releases. Added to CyberXYZ 2026-06-17, OSV malicious-package feed (Google / OpenSSF).

// what we observed

The bundled output at dist/index.cjs:212 and dist/index.js:210 contains a Buffer.from(..., 'base64').toString('utf-8') pattern. Base64 decoding into a UTF-8 string is a routine primitive used by many libraries (decoding JWT segments, parsing data URIs, handling HTTP basic-auth headers, decoding SDK tokens, etc.) and on its own is not evidence of malicious behavior. No environmental scraping, attacker-controlled network destinations, lifecycle hooks, or eval/exec of decoded content was observed. Routing to human review so a reviewer can confirm the decoded value is used as data rather than passed to an interpreter. 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.

Reported by Amazon Inspector and GitHub Advisory Database via OSV.

// versions and what to do
Malicious
1.5.14
Move to
1.7.24 newest 1.x release, no known advisory

1.7.25 is newer but was published less than 4 hours ago. The CyberXYZ Proxy holds a new release for 4 hours before it installs without an alert, so it is not named here yet.

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

npm install @mastra/koa@1.7.24

OSV recordadvisoryreference

// reach

2 direct dependencies

1 carry known advisories, worst HIGH

0 packages depend on it

an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.



    Checked 2026-10-31 at 00:00 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.