Critical Malicious Code Vulnerability in @ensdomains/web3modal Package
Summary
MAL-2025-190815: Malicious code in @ensdomains/web3modal (npm). Affects @ensdomains/web3modal versions 1.10.2. 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
The @ensdomains/web3modal package is a popular npm library used for integrating web3 functionalities into applications, allowing developers to easily connect to Ethereum wallets and manage blockchain interactions. This package is widely utilized in decentralized applications (dApps) for its user-friendly interface and robust features. However, it has recently been identified as containing malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability originates from a malicious code embedded within the @ensdomains/web3modal package, specifically in version 1.10.2. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it can lead to data breaches and loss of control over the affected systems. Users are advised to treat any system with this package as compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/web3modal
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
There are no effective workarounds for this vulnerability other than removing the package and securing your environment. Ensure that you monitor your systems for any signs of compromise.
Conclusion
The @ensdomains/web3modal package has been identified as containing malicious code that poses a significant security risk. Users must take immediate action to remove the package and secure their systems to prevent unauthorized access to sensitive information. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for @ensdomains/web3modal →
FAQ
Immediately remove the package from your project and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available. Users should remove the package and secure their systems.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and keep your packages updated to the latest secure versions.