# MAL-2026-5787: Malicious code in @solana-labs/spl-toke (npm)


- **Type:** Malicious package
- **Package:** `@solana-labs/spl-toke` (npm)
- **Published:** 15 Jun 2026
- **Also known as:** GHSA-6465-92w6-mgp8

## What is MAL-2026-5787?

MAL-2026-5787 is a malicious package in @solana-labs/spl-toke, published on 15 Jun 2026. 

### Official description

Package name `@solana-labs/spl-toke` is a likely confusion-attack against the well-known `@solana/spl-token` SPL token client (missing trailing `n`, different scope). The shipped `lib/index.cjs.js` and `lib/index.esm.js` bundles contain the keyword combinations `fetch(` / `POST` / `https.get` / `ping` that pattern-matched as potential C2 / exfiltration shapes, but tracing of the minified bundle did not complete and the literal destination URLs and trigger paths could not be confirmed in this run. The `ping` token may be benign (e.g. a websocket keepalive method or solana RPC ping helper) and the `fetch` calls may be ordinary RPC traffic — but neither has been verified, and combined with the typosquat-shaped name on a high-value scope (`@solana-labs/*` mimicking the official `solana-labs` GitHub org and the canonical `@solana/spl-token` package), this needs human review before installer use.

## What should I do about MAL-2026-5787?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5787 is a malicious package: @solana-labs/spl-toke (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5787/ (Markdown: https://insights.sbomify.com/MAL-2026-5787/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5787

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5787/
Summaries are generated and may contain mistakes; the official description above is the record.
