vite
Ecosystem: npm
Downloads: 862.46 Mln
- 0CriticalAffects 0 versions
- 7HighAffects 23 versions
- 0MediumAffects 0 versions
- 19ModerateAffects 83 versions
- 3LowAffects 13 versions
- Critical0 (0.0%)
- High7 (24.1%)
- Medium0 (0.0%)
- Moderate19 (65.5%)
- Low3 (10.3%)
Monthly breakdown
- Critical
- High
- Medium
- Moderate
- Low
- 7 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 5
- Low: 1
- 3 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 2
- Low: 0
- 3 vulnerabilities
- Critical: 0
- High: 2
- Medium: 0
- Moderate: 1
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 0
- Low: 2
- 3 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 3
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 2
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 2 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 2
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 0
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 0
- Medium: 0
- Moderate: 1
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 0
- Low: 0
- 1 vulnerabilities
- Critical: 0
- High: 1
- Medium: 0
- Moderate: 0
- Low: 0
Vulnerabilities (29)
Known vulnerabilities affecting vite, based on data from OSV.
| ID | Severity | Summary | Affected versions | Published | Source |
|---|---|---|---|---|---|
| GHSA-8g5g-mxqh-grgj | Moderate | 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 that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/c |
| GitHub (opens in a new tab) | |
| GHSA-9jrq-w75r-8gcw | 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 request URL to `server.transformIndexHtml`: this is normally used for `server.middlewareMode: true` or `appType: 'custom'`. The internal call for `appType: 'spa'` and `appType: 'mpa'` does not match this. - the transformed HTML contains an inline module script - from the script in the page served by the dev server, the ap |
| GitHub (opens in a new tab) | |
| GHSA-rq7h-c2jc-7f22 | Moderate | 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 be returned. The content of files outside the `server.fs.allow` option can be returned to the browser when a project imports a file whose root-relative path matches an absolute path on the host. For example, referencing `<project-root>/etc/hosts` could make Vite return the host's `/etc/hosts` file. ### Impact Only apps |
| GitHub (opens in a new tab) | |
| GHSA-vfpm-58rq-9qcg | Moderate | 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 network using `--host` or the [`server.host`](https://vite.dev/config/server-options#server-host) option - there's a file that has a sensitive information in **the first 4 bytes** - uses Node.js or Deno to run Vite (if Bun is used, it is not affected) ### Details Requests containing the `?vite-wasm-instance` query are h |
| GitHub (opens in a new tab) | |
| GHSA-587h-7wmj-h5pm | 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 file with a malicious filename. Combined with the `%` escaping issue described in [GHSA-698v-4r3x-3vcv](https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv), this bypass can lead to OS command injection when an attacker controls the file argument. ### Impact Only apps that runs on Windows i |
| GitHub (opens in a new tab) | |
| GHSA-698v-4r3x-3vcv | Moderate | 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 affected: - The user uses Windows - An attacker can place a file with the malicious filename containing `&` or `%` - Either of - An attacker can inject an environment variable with a malicious value - An attacker can add a NTFS alternate data stream to the file placed ### Details Unlike `.sh` files, `.bat` / `.cmd` file |
| GitHub (opens in a new tab) | |
| GHSA-r825-w8mm-5pxw | Moderate | 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-editor` users Only apps that match all of the following conditions are affected: - The attacker is able to create a file system entry (e.g. a file or directory) starting with `+` or `-` in the working directory - The user uses or the app specifies any of the following editors: - Vim (including gVim) - MacVim - Emacs |
| GitHub (opens in a new tab) | |
| GHSA-fx2h-pf6j-xcff | Moderate | 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 dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) - either of: - the sensitive file exists |
| GitHub (opens in a new tab) | |
| GHSA-v6wh-96g9-6wx3 | Moderate | 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 SMB server. This can result in credential compromise through offline hash cracking. ### Impact If the following conditions are met, an attacker can get the NTLMv2 password hash on the computer that is using the `launch-editor`: - using Windows - NTLM is not disabled ([it is recommended to disable](https://techcommunity.m |
| GitHub (opens in a new tab) | |
| GHSA-c27g-q93r-2cwf | 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 execute arbitrary commands on the computer that is using the `launch-editor`: - An attacker can place a file with the malicious filename - An attacker can call the `launchEditor` method with the `file` argument controlled - The `launch-editor` package is running on Windows For example, some development server using this pack |
| GitHub (opens in a new tab) |
- GHSA-8g5g-mxqh-grgjModerateVite: `server.fs.deny` bypassed with queries
>= 6.4.4, < 6.4.5
### 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 that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/c
CVE: CVE-2026-118662
- GHSA-9jrq-w75r-8gcwLowVite: Cross origin script execution through Vite custom middleware
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4- +3 more
Affected versions:>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4>= 8.0.0, < 8.1.6>= 7.0.0, < 7.3.7< 6.4.4
### 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 request URL to `server.transformIndexHtml`: this is normally used for `server.middlewareMode: true` or `appType: 'custom'`. The internal call for `appType: 'spa'` and `appType: 'mpa'` does not match this. - the transformed HTML contains an inline module script - from the script in the page served by the dev server, the ap
CVE: CVE-2026-112945
- GHSA-rq7h-c2jc-7f22ModerateVite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4- +3 more
Affected versions:>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4>= 8.0.0, < 8.1.6>= 7.0.0, < 7.3.7< 6.4.4
### 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 be returned. The content of files outside the `server.fs.allow` option can be returned to the browser when a project imports a file whose root-relative path matches an absolute path on the host. For example, referencing `<project-root>/etc/hosts` could make Vite return the host's `/etc/hosts` file. ### Impact Only apps
CVE: CVE-2026-112946
- GHSA-vfpm-58rq-9qcgModerateVite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4
### 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 network using `--host` or the [`server.host`](https://vite.dev/config/server-options#server-host) option - there's a file that has a sensitive information in **the first 4 bytes** - uses Node.js or Deno to run Vite (if Bun is used, it is not affected) ### Details Requests containing the `?vite-wasm-instance` query are h
CVE: CVE-2026-112947
- GHSA-587h-7wmj-h5pmHighlaunch-editor: `fs.existsSync()` existence check can be bypassed on Windows
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4- +3 more
Affected versions:>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4>= 8.0.0, < 8.1.6>= 7.0.0, < 7.3.7< 6.4.4
### 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 file with a malicious filename. Combined with the `%` escaping issue described in [GHSA-698v-4r3x-3vcv](https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv), this bypass can lead to OS command injection when an attacker controls the file argument. ### Impact Only apps that runs on Windows i
CVE: CVE-2026-112942
- GHSA-698v-4r3x-3vcvModeratelaunch-editor: escapeCmdArgs() omits % escaping on Windows
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4- +3 more
Affected versions:>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4>= 8.0.0, < 8.1.6>= 7.0.0, < 7.3.7< 6.4.4
### 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 affected: - The user uses Windows - An attacker can place a file with the malicious filename containing `&` or `%` - Either of - An attacker can inject an environment variable with a malicious value - An attacker can add a NTFS alternate data stream to the file placed ### Details Unlike `.sh` files, `.bat` / `.cmd` file
CVE: CVE-2026-112943
- GHSA-r825-w8mm-5pxwModeratelaunch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editors
>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4- +3 more
Affected versions:>= 8.3.0, < 8.3.3>= 8.2.0, < 8.2.4>= 8.0.0, < 8.1.6>= 7.0.0, < 7.3.7< 6.4.4
### 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-editor` users Only apps that match all of the following conditions are affected: - The attacker is able to create a file system entry (e.g. a file or directory) starting with `+` or `-` in the working directory - The user uses or the app specifies any of the following editors: - Vim (including gVim) - MacVim - Emacs
CVE: CVE-2026-112944
- GHSA-fx2h-pf6j-xcffModeratevite: `server.fs.deny` bypass on Windows alternate paths
>= 8.0.0, < 8.0.16>= 7.0.0, < 7.3.5- +1 more
Affected versions:>= 8.0.0, < 8.0.16>= 7.0.0, < 7.3.5< 6.4.3
### 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 dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) - either of: - the sensitive file exists
CVE: CVE-2026-53571
- GHSA-v6wh-96g9-6wx3Moderatelaunch-editor: NTLMv2 hash disclosure via UNC path handling on Windows
>= 8.0.0, < 8.0.16>= 7.0.0, < 7.3.5- +1 more
Affected versions:>= 8.0.0, < 8.0.16>= 7.0.0, < 7.3.5< 6.4.3
### 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 SMB server. This can result in credential compromise through offline hash cracking. ### Impact If the following conditions are met, an attacker can get the NTLMv2 password hash on the computer that is using the `launch-editor`: - using Windows - NTLM is not disabled ([it is recommended to disable](https://techcommunity.m
CVE: CVE-2026-53632
- GHSA-c27g-q93r-2cwfHighlaunch-editor vulnerable to command injection via the crafted request on Windows
< 5.4.9
### 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 execute arbitrary commands on the computer that is using the `launch-editor`: - An attacker can place a file with the malicious filename - An attacker can call the `launchEditor` method with the `file` argument controlled - The `launch-editor` package is running on Windows For example, some development server using this pack
CVE: CVE-2024-52011