Critical Malicious Code Vulnerability in @ensdomains/dnsprovejs Package
Summary
MAL-2025-190727: Malicious code in @ensdomains/dnsprovejs (npm). Affects @ensdomains/dnsprovejs versions 0.5.3. 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/dnsprovejs package is a JavaScript library used for DNS proving, primarily in applications that interact with the Ethereum Name Service (ENS). It facilitates the verification of DNS records and enhances the security of domain name resolutions. However, this package has been compromised, leading to severe security risks for any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @ensdomains/dnsprovejs package, identified as version 0.5.3. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The origin of this malicious code is linked to a security incident reported by the GitHub Security Advisory (GHSA), indicating that the package should be treated as a significant threat to system integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/dnsprovejs
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. It is advisable to monitor your system for any unusual activity post-removal.
Conclusion
The @ensdomains/dnsprovejs package has been compromised with malicious code, posing a significant risk to any system using it. Immediate action is required to remove the package and secure sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @ensdomains/dnsprovejs →
FAQ
You should uninstall the package immediately and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without requiring any sign-up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and full system compromise.
No patched version is available; the best course of action is to remove the package entirely.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, ensuring you stay informed about potential threats.