Critical Malicious Code Vulnerability in @ensdomains/react-ens-address Package
Summary
MAL-2025-190809: Malicious code in @ensdomains/react-ens-address (npm). Affects @ensdomains/react-ens-address versions 0.0.32. 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/react-ens-address package is an npm library designed for interacting with Ethereum Name Service (ENS) addresses in React applications. It provides developers with tools to easily integrate ENS functionalities into their projects. However, this package has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @ensdomains/react-ens-address package, specifically version 0.0.32. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code has been confirmed by the GHSA malware source, indicating that the package should be treated as a severe threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/react-ens-address
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
Currently, the only effective workaround is to uninstall the affected package and replace it with a secure alternative that provides similar functionality. Ensure that you monitor your system for any signs of compromise.
Conclusion
The discovery of malicious code in the @ensdomains/react-ens-address package poses a serious risk to users and their systems. Immediate action is required to mitigate potential damage by uninstalling the package and securing any exposed information. Continuous monitoring for vulnerabilities is essential for maintaining software security.
See every vulnerability recorded for @ensdomains/react-ens-address →
FAQ
Immediately uninstall the @ensdomains/react-ens-address package and rotate any sensitive information that may have been compromised.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Currently, there is no patched version available for the @ensdomains/react-ens-address package.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potentially resulting in data breaches and loss of control over your system.
Vulert monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities in your software, ensuring you stay informed about potential threats.