Malicious Code Detected in default-debug Package - Security Alert
Summary
MAL-2025-18178: Malicious code in default-debug (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 default-debug package is a utility in the npm ecosystem that is typically used for debugging purposes in Node.js applications. It provides developers with a straightforward way to log debug information, making it easier to troubleshoot issues in their code. However, this package has been identified as containing malicious code, which poses a significant risk to users who rely on it for their development needs.
Vulnerability Detail
The vulnerability in the default-debug package stems from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. 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 default-debug
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 default-debug package from their project until a secure version is released. This can be done using the command: npm uninstall default-debug. Consider using alternative debugging packages that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the default-debug npm package highlights the importance of maintaining vigilance regarding open-source dependencies. Users are encouraged to update their packages regularly and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for default-debug →
FAQ
default-debug is an npm package used for logging debug information in Node.js applications.
The malicious code can potentially allow unauthorized access and compromise the security of applications using this 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.
Users are advised to check the package repository for any patched versions and update accordingly.
As a temporary measure, consider uninstalling the default-debug package and using alternative debugging tools until a secure version is available.