# MAL-2026-6545: Malicious code in crossmint-wallets-sdk (npm)


- **Type:** Malicious package
- **Package:** `crossmint-wallets-sdk` (npm)
- **Published:** 27 Jun 2026
- **Also known as:** GHSA-7rfm-v32j-2583

## What is MAL-2026-6545?

MAL-2026-6545 is a malicious package in crossmint-wallets-sdk, published on 27 Jun 2026. 

### Official description

Package name impersonates the Crossmint wallet SDK family. Both preinstall.js and index.js import child_process, capture host identifiers (hostname is read on line 7/9 respectively), and POST the collected data via https.request to a hardcoded external endpoint (line 12/23). The preinstall.js path fires automatically on `npm install` before any user code runs, giving the publisher install-time data exfiltration from any developer or build system that installs this package. The combination of child_process + hostname collection + outbound POST in a preinstall lifecycle script, in a package whose name typosquats a known wallet SDK, matches the active-attack credential/reconnaissance exfiltration fingerprint.

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.

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

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-6545 is a malicious package: crossmint-wallets-sdk (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-6545/ (Markdown: https://insights.sbomify.com/MAL-2026-6545/index.md)
```

## Sources

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

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