npm package

vite 2.9.11 vulnerabilities, and the version that fixes all of them

vite 2.9.11 has 18 known vulnerabilities (6 rated high or critical); 6.4.3 fixes all of them. CISA lists 1 of them as exploited in the wild.

npm (opens in a new tab) describes it as “Native-ESM powered web dev build tool”

Known vulnerabilities
18
6 rated high or critical
Released
Jun 10, 2022
Latest is 8.3.4
Downloads last week
43
Under 1% of vite downloads
Licence
MIT
OpenSSF Scorecard
6.8/10
vitejs/vite (opens in a new tab)
Pulls in
35 packages
Resolved by deps.dev

What to upgrade to

6.4.3 is the closest release with no known vulnerabilities.

  • 2.9.18

    Newest 2.x release. Released Mar 24, 2024.

    15 known vulnerabilities, worst rated warning
  • 6.4.3Upgrade to this

    Fixes all 18 known vulnerabilities. Released Jun 1, 2026.

    No known vulnerabilities
  • 8.3.4

    Latest release. Released Oct 8, 2026.

    No known vulnerabilities

6.4.3 came out on Jun 1, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for vite 2.9.11

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2025-31125 on OSV.dev (opens in a new tab)GHSA-4r4m-qw57-chr8Exploited in the wild (CISA)

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

    Fixed in 4.5.11. Published Mar 31, 2025.

  2. CriticalCVE-2026-53571 on OSV.dev (opens in a new tab)GHSA-fx2h-pf6j-xcff

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

    Fixed in 6.4.3. Published Jun 15, 2026.

  3. CriticalCVE-2024-52011 on OSV.dev (opens in a new tab)GHSA-c27g-q93r-2cwf

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

    Fixed in 5.4.9. Published Jun 3, 2026.

  4. CriticalCVE-2024-23331 on OSV.dev (opens in a new tab)GHSA-c24v-8rfc-w8vw

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

    Fixed in 2.9.17. Published Jan 19, 2024.

  5. CriticalCVE-2023-34092 on OSV.dev (opens in a new tab)GHSA-353f-5xf4-qw67

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

    Fixed in 2.9.16. Published Jun 6, 2023.

  6. CriticalCVE-2022-35204 on OSV.dev (opens in a new tab)GHSA-mv48-hcvh-8jj8

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

    Fixed in 2.9.13. Published Aug 19, 2022.

  7. WarningCVE-2026-53632 on OSV.dev (opens in a new tab)GHSA-v6wh-96g9-6wx3

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

    Fixed in 6.4.3. Published Jun 15, 2026.

  8. WarningCVE-2026-39365 on OSV.dev (opens in a new tab)GHSA-4w7w-66w2-5vf9

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

    Fixed in 6.4.2. Published Apr 6, 2026.

  9. WarningCVE-2025-46565 on OSV.dev (opens in a new tab)GHSA-859w-5945-r5v3

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

    Fixed in 4.5.14. Published Apr 30, 2025.

  10. WarningCVE-2025-32395 on OSV.dev (opens in a new tab)GHSA-356w-63v5-8wf4

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

    Fixed in 4.5.13. Published Apr 11, 2025.

  11. WarningCVE-2025-31486 on OSV.dev (opens in a new tab)GHSA-xcj6-pq6g-qj4x

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

    Fixed in 4.5.12. Published Apr 4, 2025.

  12. WarningCVE-2025-30208 on OSV.dev (opens in a new tab)GHSA-x574-m823-4x7w

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

    Fixed in 4.5.10. Published Mar 25, 2025.

  13. WarningCVE-2025-24010 on OSV.dev (opens in a new tab)GHSA-vg6x-rcgg-rjx6

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

    Fixed in 4.5.6. Published Jan 21, 2025.

  14. WarningCVE-2024-45812 on OSV.dev (opens in a new tab)GHSA-64vr-g452-qvp3

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

    Fixed in 3.2.11. Published Sep 17, 2024.

  15. WarningCVE-2024-45811 on OSV.dev (opens in a new tab)GHSA-9cwx-2883-4wfx

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

    Fixed in 3.2.11. Published Sep 17, 2024.

  16. WarningCVE-2024-31207 on OSV.dev (opens in a new tab)GHSA-8jhw-289h-jh2g

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

    Fixed in 2.9.18. Published Apr 3, 2024.

  17. LowCVE-2025-58751 on OSV.dev (opens in a new tab)GHSA-g4jq-h2w9-997c

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

    Fixed in 5.4.20. Published Sep 9, 2025.

  18. LowCVE-2025-58752 on OSV.dev (opens in a new tab)GHSA-jqfw-vq24-v9c3

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

    Fixed in 5.4.20. Published Sep 9, 2025.

Who is still on a vulnerable vite

31% of last week’s 118.9M vite downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is vite the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly vite 2.9.11, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS (didn’t answer). Findings from that source may be missing; this page refreshes soon.