vite vulnerabilities

Native-ESM powered web dev build tool

Registry
npm
Latest
8.3.5
License
MIT

28 known advisories

The latest version, 8.3.5, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install vite@8.3.5

Security advisories for vite

  • LowGHSA-9jrq-w75r-8gcw21 Oct 2026

    Vite: Cross origin script execution through Vite custom middleware

    Affected
    >=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
    Fixed in
    6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
  • MediumGHSA-rq7h-c2jc-7f2221 Oct 2026

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

    Affected
    >=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
    Fixed in
    6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
  • MediumGHSA-vfpm-58rq-9qcg21 Oct 2026

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

    Affected
    >=8.3.0 <8.3.3 · >=8.2.0 <8.2.4
    Fixed in
    8.2.4, 8.3.3
  • MediumGHSA-r825-w8mm-5pxw20 Oct 2026

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

    Affected
    >=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
    Fixed in
    6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
  • HighGHSA-587h-7wmj-h5pm20 Oct 2026

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

    Affected
    >=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
    Fixed in
    6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
  • MediumGHSA-698v-4r3x-3vcv20 Oct 2026

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

    Affected
    >=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
    Fixed in
    6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3
  • MediumGHSA-v6wh-96g9-6wx315 Jun 2026

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

    Affected
    >=8.0.0 <8.0.16 · >=7.0.0 <7.3.5 · <6.4.3
    Fixed in
    6.4.3, 7.3.5, 8.0.16
  • HighGHSA-fx2h-pf6j-xcff15 Jun 2026

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

    Affected
    >=8.0.0 <8.0.16 · >=7.0.0 <7.3.5 · <6.4.3
    Fixed in
    6.4.3, 7.3.5, 8.0.16
  • HighGHSA-c27g-q93r-2cwf3 Jun 2026

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

    Affected
    <5.4.9
    Fixed in
    5.4.9
  • MediumGHSA-4w7w-66w2-5vf96 Apr 2026

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

    Affected
    >=8.0.0 <8.0.5 · >=7.0.0 <7.3.2 · <6.4.2
    Fixed in
    6.4.2, 7.3.2, 8.0.5
  • HighGHSA-v2wj-q39q-566r6 Apr 2026

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

    Affected
    >=8.0.0 <8.0.5 · >=7.1.0 <7.3.2
    Fixed in
    7.3.2, 8.0.5
  • HighGHSA-p9ff-h696-f5836 Apr 2026

    Vite Vulnerable to Arbitrary File Read via Vite Dev Server WebSocket

    Affected
    >=8.0.0 <8.0.5 · >=7.0.0 <7.3.2 · >=6.0.0 <6.4.2
    Fixed in
    6.4.2, 7.3.2, 8.0.5
  • MediumGHSA-93m4-6634-74q720 Oct 2025

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

    Affected
    >=7.1.0 <7.1.11 · >=7.0.0 <7.0.8 · >=6.0.0 <6.4.1 · >=2.9.18 <5.4.21 · >=3.2.9 <5.4.21 · >=4.5.3 <5.4.21 · >=5.2.6 <5.4.21
    Fixed in
    5.4.21, 6.4.1, 7.0.8, 7.1.11
  • LowGHSA-g4jq-h2w9-997c9 Sept 2025

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

    Affected
    >=7.1.0 <7.1.5 · >=7.0.0 <7.0.7 · >=6.0.0 <6.3.6 · <5.4.20
    Fixed in
    5.4.20, 6.3.6, 7.0.7, 7.1.5
  • LowGHSA-jqfw-vq24-v9c39 Sept 2025

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

    Affected
    >=7.1.0 <7.1.5 · >=7.0.0 <7.0.7 · >=6.0.0 <6.3.6 · <5.4.20
    Fixed in
    5.4.20, 6.3.6, 7.0.7, 7.1.5
  • MediumGHSA-859w-5945-r5v330 Apr 2025

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

    Affected
    >=6.3.0 <6.3.4 · >=6.2.0 <6.2.7 · >=6.0.0 <6.1.6 · >=5.0.0 <5.4.19 · <4.5.14
    Fixed in
    4.5.14, 5.4.19, 6.1.6, 6.2.7, 6.3.4
  • MediumGHSA-356w-63v5-8wf411 Apr 2025

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

    Affected
    >=6.2.0 <6.2.6 · >=6.1.0 <6.1.5 · >=6.0.0 <6.0.15 · >=5.0.0 <5.4.18 · <4.5.13
    Fixed in
    4.5.13, 5.4.18, 6.0.15, 6.1.5, 6.2.6
  • MediumGHSA-xcj6-pq6g-qj4x4 Apr 2025

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

    Affected
    >=6.2.0 <6.2.5 · >=6.1.0 <6.1.4 · >=6.0.0 <6.0.14 · >=5.0.0 <5.4.17 · <4.5.12
    Fixed in
    4.5.12, 5.4.17, 6.0.14, 6.1.4, 6.2.5
  • MediumGHSA-4r4m-qw57-chr831 Mar 2025

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

    Affected
    >=6.2.0 <6.2.4 · >=6.1.0 <6.1.3 · >=6.0.0 <6.0.13 · >=5.0.0 <5.4.16 · <4.5.11
    Fixed in
    4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4
  • MediumGHSA-x574-m823-4x7w25 Mar 2025

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

    Affected
    >=6.2.0 <6.2.3 · >=6.1.0 <6.1.2 · >=6.0.0 <6.0.12 · >=5.0.0 <5.4.15 · <4.5.10
    Fixed in
    4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3
  • MediumGHSA-vg6x-rcgg-rjx621 Jan 2025

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

    Affected
    >=6.0.0 <6.0.9 · >=5.0.0 <5.4.12 · <4.5.6
    Fixed in
    4.5.6, 5.4.12, 6.0.9
  • MediumGHSA-64vr-g452-qvp317 Sept 2024

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

    Affected
    >=5.4.0 <5.4.6 · >=5.3.0 <5.3.6 · >=5.2.0 <5.2.14 · >=4.0.0 <4.5.4 · <3.2.11 · >=5.0.0 <5.1.8
    Fixed in
    3.2.11, 4.5.4, 5.1.8, 5.2.14, 5.3.6, 5.4.6
  • MediumGHSA-9cwx-2883-4wfx17 Sept 2024

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

    Affected
    >=5.4.0 <5.4.6 · >=5.3.0 <5.3.6 · >=5.2.0 <5.2.14 · >=4.0.0 <4.5.4 · <3.2.11 · >=5.0.0 <5.1.8
    Fixed in
    3.2.11, 4.5.4, 5.1.8, 5.2.14, 5.3.6, 5.4.6
  • MediumGHSA-8jhw-289h-jh2g3 Apr 2024

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

    Affected
    >=2.7.0 <2.9.18 · >=3.0.0 <3.2.10 · >=4.0.0 <4.5.3 · >=5.0.0 <5.0.13 · >=5.1.0 <5.1.7 · >=5.2.0 <5.2.6
    Fixed in
    2.9.18, 3.2.10, 4.5.3, 5.0.13, 5.1.7, 5.2.6
  • HighGHSA-c24v-8rfc-w8vw19 Jan 2024

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

    Affected
    >=2.7.0 <2.9.17 · >=3.0.0 <3.2.8 · >=4.0.0 <4.5.2 · >=5.0.0 <5.0.12
    Fixed in
    2.9.17, 3.2.8, 4.5.2, 5.0.12
  • MediumGHSA-92r3-m2mg-pj975 Dec 2023

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

    Affected
    >=4.4.0 <4.4.12 · >=4.5.0 <4.5.1 · >=5.0.0 <5.0.5
    Fixed in
    4.4.12, 4.5.1, 5.0.5
  • HighGHSA-353f-5xf4-qw676 Jun 2023

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

    Affected
    <2.9.16 · >=3.0.2 <3.2.7 · >=4.0.0 <4.0.5 · >=4.1.0 <4.1.5 · >=4.2.0 <4.2.3 · >=4.3.0 <4.3.9
    Fixed in
    2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, 4.3.9
  • HighGHSA-mv48-hcvh-8jj819 Aug 2022

    Vite before v2.9.13 vulnerable to directory traversal via crafted URL to victim's service

    Affected
    <2.9.13 · >=3.0.0-alpha.0 <3.0.0-beta.4
    Fixed in
    2.9.13, 3.0.0-beta.4

Which of your client projects still run an old vite?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.