Critical Malicious Code Vulnerability in @ensdomains/solsha1 Package
Summary
MAL-2025-190737: Malicious code in @ensdomains/solsha1 (npm). Affects @ensdomains/solsha1 versions 0.0.4. 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/solsha1 package is a JavaScript library available on npm that is used for SHA-1 hashing functionalities. It is commonly utilized in various applications for secure data handling. However, a recent vulnerability has been identified that compromises the integrity of this package, making it a significant risk for any application that relies on it.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the @ensdomains/solsha1 package, specifically in version 0.0.4. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The implications of this vulnerability are severe, as it can lead to data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ensdomains/solsha1
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
As a workaround, if you need to maintain functionality that @ensdomains/solsha1 provided, consider using an alternative package that offers similar SHA-1 hashing capabilities without the associated risks. Always ensure to review the security history of any package before installation.
Conclusion
The @ensdomains/solsha1 package has been identified as containing malicious code that poses a significant risk to any system using it. Immediate action is required to remove the package and secure any sensitive information. Always monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for @ensdomains/solsha1 →
FAQ
You should immediately uninstall the package using 'npm uninstall @ensdomains/solsha1' and rotate any sensitive information stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Currently, there is no patched version of the @ensdomains/solsha1 package available. The only safe action is to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Yes, you can look for alternative packages that provide similar SHA-1 hashing functionalities without the security risks associated with @ensdomains/solsha1.