metemask-sdk (PyPI) · Malicious Code
Affects metemask-sdkSource GCVE Database
Malicious package : remove metemask-sdk and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:59 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10197
What to do
Remove metemask-sdk from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImetemask-sdk | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The metemask-sdk package on PyPI is a malicious typosquat of the legitimate metamask-sdk. Upon import, it fetches and executes attacker-controlled code from IPFS without integrity checks, enabling arbitrary remote code execution. The package's advertised API is non-functional and serves as a facade. The malicious code steals sensitive files such as cryptocurrency wallet keys, SSH keys, and dotenv files, uploading them to IPFS, and communicates with a command-and-control server for further instructions.