Critical Malicious Code Vulnerability in dtcleaner Package

dtcleaner Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-18949: Malicious code in dtcleaner (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback