Malicious Code Detected in block-chain Package - MAL-2025-15826
Summary
MAL-2025-15826: Malicious code in block-chain (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
The block-chain package is an npm library designed for blockchain-related functionalities, enabling developers to integrate blockchain technology into their applications. However, this package has been identified to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the block-chain package, which was introduced in version 0 and affects all subsequent versions. This malicious code can lead to unauthorized access, data breaches, and potential exploitation of the systems using this package. Users of the block-chain package are at risk of severe security implications if they do not take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall block-chain
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 temporary measure, consider using alternative packages that provide similar blockchain functionalities without the associated risks. Always review the security status of any package before integrating it into your application.
Conclusion
The block-chain package has been identified to contain malicious code, posing serious risks to applications that utilize it. Users are strongly advised to uninstall the package and seek alternatives while monitoring for any potential patches in the future.
See every vulnerability recorded for block-chain →
FAQ
The block-chain package is an npm library that allows developers to implement blockchain functionalities in their applications.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks, including unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected without needing to sign up.
Immediately uninstall the block-chain package from your project and consider using alternative packages that do not have known vulnerabilities.
While a patch has not been released yet, it is advisable to monitor the package repository for any updates or patches that may address this vulnerability.