MAL-2026-6347 Malicious code in wagmi_util (npm)
Malicious package
Published
MAL-2026-6347 is a malicious package: wagmi_util (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-6347/ (Markdown: https://insights.sbomify.com/MAL-2026-6347/index.md)
- Package
- wagmi_util
- Registry
- npm
What is MAL-2026-6347?
MAL-2026-6347 is a malicious package in wagmi_util, published on 23 Jun 2026.
Official description
Package
wagmi_util impersonates the popular wagmi package: it copies wagmi's tagline ("React Hooks for Ethereum"), re-exports wagmi's full React-hooks public API (WagmiProvider, useConnect, useWalletClient, useSignMessage, useSendTransaction, useWriteContract, etc.), and links to wagmi.sh in JSDoc — while being published by an unrelated author with no legitimate wagmi_util package existing under the wevm namespace. The package.json declares a runtime dependency on [email protected], but no source file in the package imports sync-external; every internal use of useSyncExternalStoreWithSelector imports the legitimate use-sync-external-store/shim/with-selector.js instead. Installing wagmi_util therefore silently pulls [email protected] into the installer's dependency tree even though the wrapper's own code never loads it. The wrapper itself is clean re-exports of wagmi; the attack surface is the unused-but-pinned transitive, which a developer choosing a wagmi-adjacent utility would not expect to receive.What should I do about MAL-2026-6347?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.