Critical Malicious Code Vulnerability in donotinstallthis Package

donotinstallthis Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-18642: Malicious code in donotinstallthis (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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The donotinstallthis package is an npm module that was designed for demonstration purposes. It is not intended for production use and is often used in educational contexts. However, this package has been found to contain malicious code, making it a significant security risk for any application that inadvertently includes it as a dependency.

Vulnerability Detail

The vulnerability originates from the inclusion of malicious code within the donotinstallthis package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The malicious nature of the code poses a severe risk, especially for applications that handle sensitive information.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall donotinstallthis

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

There are no effective workarounds for this vulnerability other than removing the package entirely. Ensure that your application does not depend on donotinstallthis to avoid potential security risks.

Conclusion

The donotinstallthis package poses a significant security risk due to its malicious code. It is crucial to remove this package from any projects to protect against potential vulnerabilities. Utilizing tools like Vulert can help ensure your application remains secure from such threats.

See every vulnerability recorded for donotinstallthis →

Share this vulnerability

FAQ

The donotinstallthis package is an npm module created for demonstration purposes, but it has been found to contain malicious code.

You can check your package.json and package-lock.json files for any references to donotinstallthis. Additionally, using tools like Vulert can help monitor your dependencies for vulnerabilities.

Using donotinstallthis can lead to unauthorized access, data breaches, and other malicious activities due to the embedded malicious code.

No, the only way to mitigate the risk is to completely remove the donotinstallthis package from your project.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for donotinstallthis.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall donotinstallthis

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