Critical Malicious Code Vulnerability in @ensdomains/test-utils Package
Summary
MAL-2025-190738: Malicious code in @ensdomains/test-utils (npm). Affects @ensdomains/test-utils versions 1.3.1. 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/test-utils package is a utility library designed for testing Ethereum Name Service (ENS) functionalities in JavaScript applications. It provides developers with essential tools to facilitate the testing of ENS-related features. However, this package has been compromised, leading to significant security concerns for any application utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @ensdomains/test-utils package, specifically version 1.3.1. 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 code is embedded in the package, making it difficult to detect and remove completely. Users are advised to treat any system running this package as compromised and take immediate action to secure their data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/test-utils
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 entirely and securing your system. Ensure that you monitor your environment for any signs of compromise.
Conclusion
The discovery of malicious code in the @ensdomains/test-utils package poses a serious threat to users and their systems. Immediate action is required to mitigate risks, including uninstalling the package and securing sensitive information. Continuous monitoring and vigilance are essential to safeguard against such vulnerabilities in the future.
See every vulnerability recorded for @ensdomains/test-utils →
FAQ
Immediately uninstall the package and rotate any sensitive information that may have been compromised.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without requiring any signup.
Failing to address this vulnerability could lead to unauthorized access to sensitive data, potential data breaches, and complete system compromise.
After removing the package, you should rotate all secrets and keys and conduct a thorough security audit of your system to ensure no malicious software remains.
It is uncertain until the maintainers release a new version. Always monitor the package repository for updates and security advisories.