Critical Malicious Code Vulnerability in ethers3-wallet Package
Summary
MAL-2025-5986: Malicious code in ethers3-wallet (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
ethers3-wallet is an npm package designed for managing Ethereum wallets, providing functionalities such as creating, importing, and managing wallets securely. However, it has been identified to contain malicious code that compromises the security of any system where it is installed, potentially leading to unauthorized access to sensitive information.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the ethers3-wallet package. This code can fully compromise any computer that has the package installed, allowing attackers to access secrets and keys stored on the system. The ramifications are severe, as it may lead to data breaches and unauthorized control over the affected systems. The malicious nature of the code is classified under CWE-506, indicating that it appears to be intentionally harmful.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ethers3-wallet
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, if you suspect that your system may have been compromised, rotate all secrets and keys stored on the affected machine from a different, secure computer. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The ethers3-wallet package has a critical vulnerability due to embedded malicious code that can compromise systems. Immediate action is required to remove the package and secure any sensitive information. Regularly monitor for updates and consider using tools like Vulert to stay informed about vulnerabilities in your dependencies.
See every vulnerability recorded for ethers3-wallet →
FAQ
ethers3-wallet is an npm package used for managing Ethereum wallets, allowing users to create and manage wallets securely.
The vulnerability involves embedded malicious code that can compromise the security of any system where the package is installed, leading to potential data breaches.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Immediately remove the ethers3-wallet package from your system and rotate any sensitive information stored on the affected machine.
Yes, consider using other Ethereum wallet management packages that do not have known vulnerabilities.