SECURITY & CVE TRACK RECORD

Vite Security Advisories, CVEs & Patched Versions

Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Vite.

Total Tracked Advisories
29
29 distinct CVE numbers
Critical & High Severity
7
24% of all disclosures
Latest Security Fix
6.4.5
Read patch changelog →
Security Posture Status
Active Patches
Deterministic OSV.dev telemetry
Tracked Vulnerability Timeline (29)
🛡️ CVE-2026-118662 GHSA-8g5g-mxqh-grgj Oct 29, 2026
MEDIUM

Vite: `server.fs.deny` bypassed with queries

### Summary The contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. This is the same as https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r. ### Impact Only apps...

Vulnerable Range: 6.4.4 -> 6.4.5
Fix Version: 6.4.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-112945 GHSA-9jrq-w75r-8gcw Oct 21, 2026
LOW

Vite: Cross origin script execution through Vite custom middleware

### Summary When accessing a malicious site while a dev server using Vite is running, that site was able to load scripts in a page served by the dev server. ### Impact Only apps that match the following conditions are affected: - the dev server passes an unchanged browser ...

Vulnerable Range: 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4, 8.0.0 -> 8.1.6
Fix Version: 8.3.3 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-112946 GHSA-rq7h-c2jc-7f22 Oct 21, 2026
MEDIUM

Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine

### Summary The content of files outside `server.fs` setting can be returned to the browser if the project imports a file path concatenated with the `root`. For example, if the project references `<path-to-project-root>/etc/hosts`, the content of `/etc/hosts` was possible to ...

Vulnerable Range: 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4, 8.0.0 -> 8.1.6
Fix Version: 8.3.3 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-112947 GHSA-vfpm-58rq-9qcg Oct 21, 2026
MEDIUM

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

### Summary The first 4 bytes of files outside of `server.fs` setting can be returned to the browser by a request containing `?vite-wasm-instance`. ### Impact Only apps that match one of the following conditions are affected: - explicitly expose the Vite dev server to the...

Vulnerable Range: 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4, 0.2.8 -> 1.1.0
Fix Version: 8.3.3 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-112944 GHSA-r825-w8mm-5pxw Oct 20, 2026
MEDIUM

launch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors

### Summary `launch-editor` forwarded file paths directly to editors without sanitization. If a path resembles a CLI flag, editors like Vim may interpret it as a command, potentially causing unintended file overwrites or command execution. ### Impact #### Direct `launch-edi...

Vulnerable Range: 0 -> 2.14.2, 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4
Fix Version: 2.14.2
Official Advisory Source ↗
🛡️ CVE-2026-112942 GHSA-587h-7wmj-h5pm Oct 20, 2026
HIGH

launch-editor: `fs.existsSync()` existence check can be bypassed on Windows

### Summary `launch-editor` checked `fs.existsSync(fileName)` before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in `\\..:line:column`. This removes the requirement that the attacker be able to place a...

Vulnerable Range: 0 -> 2.14.2, 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4
Fix Version: 2.14.2
Official Advisory Source ↗
🛡️ CVE-2026-112943 GHSA-698v-4r3x-3vcv Oct 20, 2026
MEDIUM

launch-editor: escapeCmdArgs() omits % escaping on Windows

### Summary `launch-editor` did not escape `%` on Windows when passing an argument to `cmd`. When an environment variable contained a malicious value, it was possible that that content to be executed. ### Impact Only apps that match all of the following conditions are affec...

Vulnerable Range: 0 -> 2.14.2, 8.3.0 -> 8.3.3, 8.2.0 -> 8.2.4
Fix Version: 2.14.2
Official Advisory Source ↗
🛡️ CVE-2026-53632 GHSA-v6wh-96g9-6wx3 Jun 15, 2026
MEDIUM

launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows

### Summary The `launch-editor` NPM package accesses arbitrary paths including Windows UNC paths. When a UNC path is opened, Windows automatically attempts NTLM authentication to the remote host, causing the user’s NTLMv2 password hash to be leaked to an attacker-controlled SM...

Vulnerable Range: 0 -> 2.14.1, 8.0.0 -> 8.0.16, 7.0.0 -> 7.3.5
Fix Version: 2.14.1
Official Advisory Source ↗
🛡️ CVE-2026-53571 GHSA-fx2h-pf6j-xcff Jun 15, 2026
MEDIUM

vite: `server.fs.deny` bypass on Windows alternate paths

### Summary The contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser on Windows. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite...

Vulnerable Range: 8.0.0 -> 8.0.16, 7.0.0 -> 7.3.5, 0 -> 6.4.3
Official Advisory Source ↗
🛡️ CVE-2024-52011 GHSA-c27g-q93r-2cwf Jun 03, 2026
HIGH

launch-editor vulnerable to command injection via the crafted request on Windows

### Summary Due to the insufficient sanitization of the `file` argument in the `launchEditor`, an attacker can execute arbitrary commands on Windows by supplying a filename that contains special characters. ### Impact If the following conditions are met, an attacker can execu...

Vulnerable Range: 0 -> 2.9.0, 0 -> 5.4.9
Fix Version: 2.9.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-39365 GHSA-4w7w-66w2-5vf9 Apr 06, 2026
MEDIUM

Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling

### Summary Any files ending with `.map` even out side the project can be returned to the browser. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option...

Vulnerable Range: 8.0.0 -> 8.0.5, 7.0.0 -> 7.3.2, 0 -> 6.4.2
Fix Version: 8.0.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-39364 GHSA-v2wj-q39q-566r Apr 06, 2026
HIGH

Vite: `server.fs.deny` bypassed with queries

### Summary The contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server...

Vulnerable Range: 8.0.0 -> 8.0.5, 7.1.0 -> 7.3.2
Fix Version: 8.0.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2026-39363 GHSA-p9ff-h696-f583 Apr 06, 2026
HIGH

Vite Vulnerable to Arbitrary File Read via Vite Dev Server WebSocket

### Summary [`server.fs`](https://vite.dev/config/server-options#server-fs-strict) check was not enforced to the `fetchModule` method that is exposed in Vite dev server's WebSocket. ### Impact Only apps that match the following conditions are affected: - explicitly expose...

Vulnerable Range: 8.0.0 -> 8.0.5, 7.0.0 -> 7.3.2, 6.0.0 -> 6.4.2
Fix Version: 8.0.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-62522 GHSA-93m4-6634-74q7 Oct 20, 2025
MEDIUM

vite allows server.fs.deny bypass via backslash on Windows

### Summary Files denied by [`server.fs.deny`](https://vitejs.dev/config/server-options.html#server-fs-deny) were sent if the URL ended with `\` when the dev server is running on Windows. ### Impact Only apps that match the following conditions are affected: - explicitly exp...

Vulnerable Range: 7.1.0 -> 7.1.11, 7.0.0 -> 7.0.8, 6.0.0 -> 6.4.1
Official Advisory Source ↗
🛡️ CVE-2025-58751 GHSA-g4jq-h2w9-997c Sep 09, 2025
LOW

Vite middleware may serve files starting with the same name with the public directory

### Summary Files starting with the same name with the public directory were served bypassing the `server.fs` settings. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using --host or [`server.ho...

Vulnerable Range: 7.1.0 -> 7.1.5, 7.0.0 -> 7.0.7, 6.0.0 -> 6.3.6
Fix Version: 7.1.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-58752 GHSA-jqfw-vq24-v9c3 Sep 09, 2025
LOW

Vite's `server.fs` settings were not applied to HTML files

### Summary Any HTML files on the machine were served regardless of the `server.fs` settings. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using --host or [server.host config option](https://...

Vulnerable Range: 7.1.0 -> 7.1.5, 7.0.0 -> 7.0.7, 6.0.0 -> 6.3.6
Fix Version: 7.1.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-46565 GHSA-859w-5945-r5v3 Apr 30, 2025
MEDIUM

Vite's server.fs.deny bypassed with /. for files under project root

### Summary The contents of files in [the project `root`](https://vite.dev/config/shared-options.html#root) that are denied by a file matching pattern can be returned to the browser. ### Impact Only apps explicitly exposing the Vite dev server to the network (using --host or...

Vulnerable Range: 6.3.0 -> 6.3.4, 6.2.0 -> 6.2.7, 6.0.0 -> 6.1.6
Fix Version: 6.3.4 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-32395 GHSA-356w-63v5-8wf4 Apr 11, 2025
MEDIUM

Vite has an `server.fs.deny` bypass with an invalid `request-target`

### Summary The contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun. ### Impact Only apps with the following conditions are affected. - explicitly exposing the Vite dev server to the network (using --host or [server.host con...

Vulnerable Range: 6.2.0 -> 6.2.6, 6.1.0 -> 6.1.5, 6.0.0 -> 6.0.15
Fix Version: 6.2.6 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-31486 GHSA-xcj6-pq6g-qj4x Apr 04, 2025
MEDIUM (CVSS 5.3)

Vite allows server.fs.deny to be bypassed with .svg or relative paths

### Summary The contents of arbitrary files can be returned to the browser. ### Impact Only apps explicitly exposing the Vite dev server to the network (using --host or [server.host config option](https://vitejs.dev/config/server-options.html#server-host)) are affected. ##...

Vulnerable Range: 6.2.0 -> 6.2.5, 6.1.0 -> 6.1.4, 6.0.0 -> 6.0.14
Fix Version: 6.2.5 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-31125 GHSA-4r4m-qw57-chr8 Mar 31, 2025
MEDIUM (CVSS 5.3)

Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

### Summary The contents of arbitrary files can be returned to the browser. ### Impact Only apps explicitly exposing the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) are affected. ...

Vulnerable Range: 6.2.0 -> 6.2.4, 6.1.0 -> 6.1.3, 6.0.0 -> 6.0.13
Fix Version: 6.2.4 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-30208 GHSA-x574-m823-4x7w Mar 25, 2025
MEDIUM (CVSS 5.3)

Vite bypasses server.fs.deny when using ?raw??

### Summary The contents of arbitrary files can be returned to the browser. ### Impact Only apps explicitly exposing the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) are affected. ...

Vulnerable Range: 6.2.0 -> 6.2.3, 6.1.0 -> 6.1.2, 6.0.0 -> 6.0.12
Fix Version: 6.2.3 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-24010 GHSA-vg6x-rcgg-rjx6 Jan 21, 2025
MEDIUM (CVSS 6.5)

Websites were able to send any requests to the development server and read the response in vite

### Summary Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections. > [!WARNING] > This vulnerability even applies to users that only run...

Vulnerable Range: 6.0.0 -> 6.0.9, 5.0.0 -> 5.4.12, 0 -> 4.5.6
Fix Version: 6.0.9 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2024-45812 GHSA-64vr-g452-qvp3 Sep 17, 2024
MEDIUM (CVSS 6.4)

Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS

### Summary We discovered a DOM Clobbering vulnerability in Vite when building scripts to `cjs`/`iife`/`umd` output format. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an...

Vulnerable Range: 5.4.0 -> 5.4.6, 5.3.0 -> 5.3.6, 5.2.0 -> 5.2.14
Fix Version: 5.4.6 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2024-45811 GHSA-9cwx-2883-4wfx Sep 17, 2024
MEDIUM (CVSS 5.3)

Vite's `server.fs.deny` is bypassed when using `?import&raw`

### Summary The contents of arbitrary files can be returned to the browser. ### Details `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. ### PoC ```sh $ npm cr...

Vulnerable Range: 5.4.0 -> 5.4.6, 5.3.0 -> 5.3.6, 5.2.0 -> 5.2.14
Fix Version: 5.4.6 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2024-31207 GHSA-8jhw-289h-jh2g Apr 03, 2024
MEDIUM (CVSS 5.9)

Vite's `server.fs.deny` did not deny requests for patterns with directories.

### Summary [Vite dev server option](https://vitejs.dev/config/server-options.html#server-fs-deny) `server.fs.deny` did not deny requests for patterns with directories. An example of such a pattern is `/foo/**/*`. ### Impact Only apps setting a custom `server.fs.deny` that in...

Vulnerable Range: 2.7.0 -> 2.9.18, 3.0.0 -> 3.2.10, 4.0.0 -> 4.5.3
Official Advisory Source ↗
🛡️ CVE-2024-23331 GHSA-c24v-8rfc-w8vw Jan 19, 2024
HIGH (CVSS 7.5)

Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem

### Summary [Vite dev server option](https://vitejs.dev/config/server-options.html#server-fs-deny) `server.fs.deny` can be bypassed on case-insensitive file systems using case-augmented versions of filenames. Notably this affects servers hosted on Windows. This bypass is simi...

Vulnerable Range: 2.7.0 -> 2.9.17, 3.0.0 -> 3.2.8, 4.0.0 -> 4.5.2
Official Advisory Source ↗
🛡️ CVE-2023-49293 GHSA-92r3-m2mg-pj97 Dec 05, 2023
MEDIUM (CVSS 6.1)

Vite XSS vulnerability in `server.transformIndexHtml` via URL payload

### Summary When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`<script type="module">...</script>`), it is possible to inject a...

Vulnerable Range: 4.4.0 -> 4.4.12, 4.5.0 -> 4.5.1, 5.0.0 -> 5.0.5
Official Advisory Source ↗
🛡️ CVE-2023-34092 GHSA-353f-5xf4-qw67 Jun 06, 2023
HIGH (CVSS 7.5)

Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)

The issue involves a security vulnerability in Vite where the server options can be bypassed using a double forward slash (`//`). This vulnerability poses a potential security risk as it can allow unauthorized access to sensitive directories and files. ### Steps to Fix. **Upd...

Vulnerable Range: 0 -> 2.9.16, 3.0.2 -> 3.2.7, 4.0.0 -> 4.0.5
Official Advisory Source ↗