Is vite 5.1 vulnerable?

npm · 9 releases from 5.1.0 to 5.1.8 · latest vite is 8.3.5 · checked 1 Nov 2026

Yes: 18 known advisories

Yes. vite 5.1.8, the last 5.1 release, is affected by 18 known security advisories (2 high, 13 medium, 3 low), including CVE-2026-112942, CVE-2024-52011, CVE-2026-112946. 3 more affect earlier 5.1.x releases. Upgrade to 6.4.4 or later to fix all of them.

Upgrade with:npm install vite@6.4.4

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting vite 5.1.8

  • LowCVE-2026-112945GHSA-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
  • MediumCVE-2026-112946GHSA-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
  • MediumCVE-2026-112944GHSA-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
  • HighCVE-2026-112942GHSA-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
  • MediumCVE-2026-112943GHSA-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
  • MediumCVE-2026-53632GHSA-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
  • MediumCVE-2026-53571GHSA-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
  • HighCVE-2024-52011GHSA-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
  • MediumCVE-2026-39365GHSA-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
  • MediumCVE-2025-62522GHSA-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
  • LowCVE-2025-58751GHSA-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
  • LowCVE-2025-58752GHSA-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
  • MediumCVE-2025-46565GHSA-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
  • MediumCVE-2025-32395GHSA-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
  • MediumCVE-2025-31486GHSA-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
  • MediumCVE-2025-31125GHSA-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
  • MediumCVE-2025-30208GHSA-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
  • MediumCVE-2025-24010GHSA-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

Fixed within 5.1.x, affecting earlier releases

  • MediumCVE-2024-45812GHSA-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
  • MediumCVE-2024-45811GHSA-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
  • MediumCVE-2024-31207GHSA-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

Which of your client projects are still on vite 5.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact vite version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other vite versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.