Critical Malicious Code Vulnerability in dtcleaner Package
Summary
MAL-2025-18949: Malicious code in dtcleaner (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 dtcleaner package is an npm module designed to assist developers in cleaning and optimizing their codebases. It offers features such as removing unused files and optimizing project structure. However, the package has been found to contain malicious code, posing significant risks to users who rely on its functionality.
Vulnerability Detail
The dtcleaner package has been identified to contain malicious code that can compromise the security of applications using it. This vulnerability originates from the package's codebase, which has been intentionally altered to execute harmful actions. Users of this package may face data breaches, unauthorized access, or other security incidents as a result of this malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dtcleaner
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 avoid using the dtcleaner package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The dtcleaner package has been compromised with malicious code, posing serious security risks to its users. It is crucial to remove this package from your projects and seek alternatives until a secure version is provided. Utilizing tools like Vulert can help monitor your applications for vulnerabilities effectively.
See every vulnerability recorded for dtcleaner →
FAQ
dtcleaner is an npm package designed to help developers clean and optimize their codebases.
The malicious code can execute harmful actions, potentially leading to data breaches or unauthorized access.
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.
Immediately remove the dtcleaner package from your project and look for alternative solutions.
Currently, there is no patched version available. It is advisable to remove the package until a secure version is released.