Malicious Code Detected in @cheqplease/structured-logger: Version 9.3.2 Compromised
Summary
MAL-2025-192434: Malicious code in @cheqplease/structured-logger (npm). Affects @cheqplease/structured-logger versions 9.3.2. 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 package @cheqplease/structured-logger is an npm library designed for structured logging in JavaScript applications. It allows developers to log messages in a consistent format, making it easier to analyze logs and debug applications. However, version 9.3.2 of this package has been flagged for containing malicious code that communicates with a domain associated with harmful activities.
Vulnerability Detail
The vulnerability in @cheqplease/structured-logger arises from its version 9.3.2, which has been identified as malicious by the OpenSSF Package Analysis project. The package's malicious behavior includes communicating with a domain linked to malicious activities, potentially compromising the security of applications that utilize this package. This could lead to unauthorized access, data breaches, or other security incidents.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @cheqplease/structured-logger
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, you can remove the @cheqplease/structured-logger package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall @cheqplease/structured-logger.
Conclusion
The @cheqplease/structured-logger package version 9.3.2 has been identified as malicious due to its communication with harmful domains. It is crucial for developers to update or remove this package to protect their applications from potential security threats. Regular monitoring of dependencies is recommended to maintain application security.
See every vulnerability recorded for @cheqplease/structured-logger →
FAQ
The malicious code in version 9.3.2 communicates with a domain known for malicious activities, posing a security risk.
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 from your project as a temporary measure to mitigate risk.
It is advisable to check the package repository for versions prior to 9.3.2 or any patched versions that may have been released.
Utilizing tools like Vulert can help you monitor your dependencies for vulnerabilities in real-time, ensuring you are alerted to any issues promptly.