Malicious Code Injection in dependent_bug-tool: A Critical npm Vulnerability
Summary
MAL-2025-101346: Malicious code in dependent_bug-tool (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 'dependent_bug-tool' package is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate various development tasks. However, this package has been identified as part of a malicious campaign that floods the npm registry with harmful scripts, compromising the integrity of the ecosystem.
Vulnerability Detail
The vulnerability stems from the 'dependent_bug-tool' package being associated with a malicious campaign that modifies package.json files to remove private flags and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to potential pollution of the npm registry and exploitation of developers' environments. The malicious payload can introduce security risks, including unauthorized access and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dependent_bug-tool
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 'dependent_bug-tool' package from your project by executing 'npm uninstall dependent_bug-tool'. This will prevent any malicious code from executing while you assess the situation.
Conclusion
The 'dependent_bug-tool' package poses a significant security risk due to its malicious code that alters package configurations and can lead to broader vulnerabilities within the npm ecosystem. It is crucial to take immediate action by updating or removing the package to safeguard your projects.
See every vulnerability recorded for dependent_bug-tool →
FAQ
The malicious code modifies package.json files, removes private flags, and generates random package names to inflate developer reputation scores.
This vulnerability can lead to unauthorized access, data breaches, and pollution of the npm registry, compromising the security of your project.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
If you cannot update the package right away, consider uninstalling it as a temporary measure to mitigate risks.