MAL-2026-12498 Malicious code in wagmi-react (npm)
Malicious package
Published
MAL-2026-12498 is a malicious package: wagmi-react (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-12498/ (Markdown: https://insights.sbomify.com/MAL-2026-12498/index.md)
- Package
- wagmi-react
- Registry
- npm
What is MAL-2026-12498?
MAL-2026-12498 is a malicious package in wagmi-react, published on 5 Aug 2026.
Official description
The package impersonates the wagmi/viem wallet API surface (exporting createWalletClient, parseAccount, and a WalletClient constructor) and, when a caller instantiates WalletClient with a privateKey, serializes the private key together with os.hostname() and os.userInfo().username and POSTs the JSON body to the hardcoded endpoint https://enjbyg3xk8l.x.pipedream.net/k. Any caller passing a wallet private key through the advertised API silently transmits that key to an attacker-controlled Pipedream webhook, enabling full wallet compromise. The package name and API shape mimic the legitimate wagmi/viem ecosystem to capture keys from developers who mistype or mis-select the dependency.
What should I do about MAL-2026-12498?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.