Malicious Code Detected in error-loggerjs Package - Security Alert
Summary
MAL-2025-19796: Malicious code in error-loggerjs (npm). Affects error-loggerjs versions 7.11.7 – 7.11.8. 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 error-loggerjs package is an npm library designed for logging errors in JavaScript applications. It provides developers with tools to capture and report errors effectively. However, this package has been found to contain malicious code, posing a significant security risk to applications that utilize it.
Vulnerability Detail
The vulnerability in the error-loggerjs package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may 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 potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall error-loggerjs
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 error-loggerjs package from their project until a secure version is released. This can be done using the command: npm uninstall error-loggerjs. Alternatively, consider using a different logging package that does not have known vulnerabilities.
Conclusion
The error-loggerjs package has been identified as containing malicious code, posing a serious threat to applications that utilize it. Immediate action is required to update or remove the package to safeguard your application. Utilize tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for error-loggerjs →
FAQ
error-loggerjs is an npm package used for logging errors in JavaScript applications.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider removing the package or using an alternative logging solution until a secure version is available.
Utilize tools like Vulert to monitor your package-lock.json file for vulnerabilities in real-time, ensuring your applications remain secure.