Critical Malicious Code Vulnerability in crypto-addr-codec Package
Summary
MAL-2025-190694: Malicious code in crypto-addr-codec (npm). Affects crypto-addr-codec versions 0.1.9. 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 crypto-addr-codec package is an npm library designed for encoding and decoding cryptocurrency addresses. It provides essential functionalities for developers working with blockchain technologies. However, this package has been compromised, leading to a significant security vulnerability that can affect any system using it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the crypto-addr-codec package, specifically in version 0.1.9. This malicious code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications 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 crypto-addr-codec
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, you can avoid using the crypto-addr-codec package altogether and look for alternative libraries that provide similar functionality without the associated risks. Always ensure to review the security history of any package before installation.
Conclusion
The crypto-addr-codec package has been compromised with malicious code, posing a serious threat to any system using it. Immediate action is required to remove the package and secure any sensitive information. Utilize tools like Vulert to monitor your applications for vulnerabilities and ensure ongoing security.
See every vulnerability recorded for crypto-addr-codec →
FAQ
The crypto-addr-codec package is used for encoding and decoding cryptocurrency addresses, facilitating interactions with blockchain technologies.
If you have the crypto-addr-codec package version 0.1.9 installed, your system is affected. You can also use Vulert to monitor and alert for vulnerabilities in your software.
Immediately rotate all secrets and keys stored on the affected system from a secure, unaffected computer to mitigate potential breaches.
No, there is currently no patched version available for the crypto-addr-codec package. It is recommended to remove the package entirely.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, allowing you to stay informed about potential risks.