Critical Malicious Code Vulnerability in @ensdomains/durin Package
Summary
MAL-2025-190930: Malicious code in @ensdomains/durin (npm). Affects @ensdomains/durin versions 0.1.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/durin package is an npm library designed for interacting with the Ethereum Name Service (ENS). It provides functionalities for managing domain names on the Ethereum blockchain, allowing users to register, transfer, and manage their ENS domains. However, this package has been identified to contain malicious code, posing significant security risks to any system where it is installed.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the @ensdomains/durin package. This code can compromise the security of any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code has been confirmed by security researchers, and it is classified under CWE-506, indicating that the product contains code that appears to be malicious in nature. Users are advised to treat any system running this package as fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/durin
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, there are no effective workarounds to mitigate the risks posed by this vulnerability other than removing the package and securing your system.
Conclusion
The @ensdomains/durin package has been identified as containing malicious code that poses serious security risks. Users must act swiftly to remove the package and secure their systems to prevent unauthorized access to sensitive information. Regular monitoring and the use of tools like Vulert can help maintain security in the future.
See every vulnerability recorded for @ensdomains/durin →
FAQ
You should immediately remove the package and rotate any secrets or keys 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 if your application is affected without any signup.
Failing to address this vulnerability can lead to unauthorized access to sensitive information, potentially compromising your entire system.
As of now, there is no patched version available. Users are advised to remove the package immediately.
After removing the package, rotate all secrets and keys stored on the affected system and monitor for any unusual activity.