Malicious Code Injection in vite-dev-launcher: A Critical Vulnerability

vite-dev-launcher Updated 23 Sep 2026

Summary

23/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-16474: Malicious code in vite-dev-launcher (npm). Affects vite-dev-launcher versions 2.9.4. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

vite-dev-launcher is an npm package designed as a wrapper for the Vite development server, facilitating a streamlined development experience. It allows developers to leverage Vite's features while managing their development environment effectively. However, this package has been found to harbor a serious vulnerability that exposes users to potential malicious code execution.

Vulnerability Detail

The vulnerability originates from a malicious code embedded within the vite-dev-launcher package. During the post-installation process, the package executes a series of scripts that decrypt and execute hidden code, which is tailored to specific developer environments. This code can potentially compromise the integrity of the development environment, allowing unauthorized access and control. The malicious payload is obfuscated and only activates under certain conditions, making it difficult to detect through standard security measures.

How To Fix

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

npm uninstall vite-dev-launcher

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 vite-dev-launcher package until a patch is confirmed and applied. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The vite-dev-launcher package has been identified as containing malicious code that poses a significant risk to developers. It is imperative to update to the latest version to safeguard your development environment. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time, ensuring your applications remain secure.

See every vulnerability recorded for vite-dev-launcher →

Share this vulnerability

FAQ

vite-dev-launcher is an npm package that acts as a wrapper for the Vite development server, enhancing the development workflow for JavaScript applications.

The vulnerability allows malicious code to be executed within your development environment, potentially compromising sensitive information and system integrity.

You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can identify if your application is affected by this vulnerability.

Yes, you can temporarily avoid using the vite-dev-launcher package and look for alternative solutions until a secure version is released.

Detailed information about the vulnerability can be found in the Open Source Vulnerability database, as well as through security advisories related to the vite-dev-launcher package.

How To Fix

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

npm uninstall vite-dev-launcher

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