Critical Malicious Code Vulnerability in costelogger Package
Summary
MAL-2025-17632: Malicious code in costelogger (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 costelogger package is an npm library designed to facilitate logging of application events and metrics. It is commonly used in Node.js applications to enhance observability and debugging capabilities. However, recent findings have revealed that this package contains malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the costelogger package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate the risks associated with this vulnerability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall costelogger
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 workaround, users can remove the costelogger package from their project until a secure version is released. This can be done by running the following command: npm uninstall costelogger.
Conclusion
The discovery of malicious code in the costelogger package highlights the importance of regularly monitoring and updating dependencies in software projects. Users are strongly advised to take immediate action to secure their applications by updating or removing the affected package.
See every vulnerability recorded for costelogger →
FAQ
costelogger is an npm package used for logging application events and metrics in Node.js applications.
The malicious code can lead to unauthorized access and potential data breaches, compromising application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Users should check the package repository for any patched versions and update accordingly to mitigate the vulnerability.
As a temporary measure, consider uninstalling the costelogger package until a secure version is available.