Critical Malicious Code Vulnerability in ethersnog Package
Summary
MAL-2026-1175: Malicious code in ethersnog (npm). Affected versions are not published. 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
ethersnog is an npm package designed for developers to facilitate interactions with Ethereum blockchain applications. It provides various utilities for managing Ethereum transactions and smart contracts. However, the package has been compromised, embedding malicious code that poses significant security risks to any system using it.
Vulnerability Detail
The vulnerability originates from the ethersnog package, which has been identified as containing malicious code. This code can fully compromise any computer where the package is installed, allowing unauthorized access to sensitive information such as secrets and keys. The implications of this vulnerability are severe, as it may lead to data breaches and unauthorized control over affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ethersnog
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. The only recommended action is to uninstall the ethersnog package and secure your system.
Conclusion
The ethersnog package has been compromised with malicious code, posing significant security risks. Immediate action is required to uninstall the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for ethersnog →
FAQ
You should immediately uninstall the ethersnog package and rotate any secrets or keys stored on your 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 needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
After removing the package, it is essential to rotate all secrets and keys from a secure computer to mitigate any potential damage.
While removing the package is necessary, there is no guarantee that all malicious software has been removed. It is crucial to take additional security measures.