Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › vitejs

Critical 9.1 2 CVEs Analysis

Vite dev server flaws allow file disclosure and, in one case, code execution

Two Vite vulnerabilities published by NVD on 2026-11-30 affect the development server: one critical issue can lead to local file disclosure and arbitrary code execution, and a medium-severity issue can expose files outside the server.fs allow list. Fixed versions are named in the records.

What to look into

  • 2 vulnerabilities in vitejs vite: 1 critical, 1 medium (CVSS up to 9.1).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-140097 (9.1 critical): Vite Development Server Allows Remote Code Execution in Vulnerable Versions. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
  • 2 of 2 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
  • Kinds of flaws: Improper Encoding or Escaping of Output; Exposure of Sensitive Information to an Unauthorized Actor.
BrowsersJavaScriptVulnerabilitiesWeb

Key points

  • Two Vite flaws published by NVD on 2026-11-30, both in the development server
  • CVE-2026-140097 is CRITICAL (CVSS 9.1) and may allow file disclosure and arbitrary code execution
  • CVE-2026-140098 is MEDIUM (CVSS 6.9) and allows reading files outside server.fs.allow in 8.4.0-beta.1
  • Both are described as exploitable by unauthenticated remote attackers
  • The records name fixed versions but give no workarounds or detection guidance

Overview

NVD published two vulnerabilities in Vite, a frontend tooling framework for JavaScript, on 2026-11-30. Both concern the development server, which the records describe as network-exposed. The two flaws differ in severity and in the versions they affect, so administrators should check which branch they run.

The critical flaw

CVE-2026-140097 is rated CRITICAL with a CVSS score of 9.1. According to the record, the development server places request-derived module identifiers from the vite-browser-external: and vite-optional-peer-dep: virtual modules into generated JavaScript without escaping. An unauthenticated remote attacker can use this to inject an import that adds a file outside the project to the server.fs allow list. The record says this can then reach server-side evaluation through new Worker or import.meta.glob processing, which may disclose local files and allow arbitrary code execution in the development-server process. The affected range is given as 4.0.0 up to the fixed releases listed for each line, and vite-plus before 1.5.1.

The medium flaw

CVE-2026-140098 is rated MEDIUM with a CVSS score of 6.9 and is described as affecting 8.4.0-beta.1. The record explains that the server can register a file chosen in the request, outside server.fs.allow, when handling worker, sharedworker, wasm, init, or source query forms. An unauthenticated attacker who first requests such a path and then requests it normally can bypass the allow list and read the file, unless server.fs.deny matches it.

Who is affected and what to do

The records do not describe how common development-server exposure is, and they do not provide detection guidance or workarounds. Administrators running the affected Vite lines should move to the fixed versions named in the records: 6.4.6, 7.3.8, 8.1.7, 8.2.5, or 8.3.7 for CVE-2026-140097, vite-plus 1.5.1, and 8.4.0-beta.2 for CVE-2026-140098. Development servers should not be reachable from untrusted networks while they are being patched.

What to do

  1. Upgrade Vite to 6.4.6, 7.3.8, 8.1.7, 8.2.5, or 8.3.7, according to your release line
  2. Upgrade vite-plus to 1.5.1 if you use it
  3. Upgrade Vite 8.4.0-beta users to 8.4.0-beta.2
  4. Keep development servers off untrusted networks until patched

Our article about all 2 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 2 vulnerabilities

  • CVE-2026-140097 9.1 Vite Development Server Allows Remote Code Execution in Vulnerable Versions
  • CVE-2026-140098 6.9 Vite is a frontend tooling framework for JavaScript. In 8.4.0-beta.1, a network-exposed development server can register a request-chosen file outside server.fs.allow in config.environments.client.safeModulePaths when processing ?worker&imp…

Frequently asked questions

How many vitejs vite vulnerabilities were published on November 30, 2026?

2 vulnerabilities: 1 critical, 1 medium, with CVSS scores up to 9.1.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-140097 (CVSS 9.1): Vite Development Server Allows Remote Code Execution in Vulnerable Versions.

Original records