npm package
vite 5.0.6 vulnerabilities, and the version that fixes all of them
vite 5.0.6 has 17 known vulnerabilities (4 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
- 17
- 4 rated high or critical
- Released
- Dec 6, 2023
- Latest is 8.3.4
- Downloads last week
- 4.4K
- Under 1% of vite downloads
- Licence
- MIT
- Pulls in
- 57 packages
- Resolved by deps.dev
What to upgrade to
6.4.3 is the closest release with no known vulnerabilities.
Newest 5.x release. Released Oct 20, 2025.
3 known vulnerabilities, worst rated warning6.4.3Upgrade to this
Fixes all 17 known vulnerabilities. Released Jun 1, 2026.
No known vulnerabilitiesLatest 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
- CriticalVulnerability
17 known vulnerabilities in vite 5.0.6
Exploited in the wild (CISA)EPSS: top 1%4 rated high or critical. Most serious: CVE-2025-31125, Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query. Upgrading to 6.4.3 fixes all of them.
- WarningOutdated
vite 5.0.6 is 3 major versions behind
Latest release is 8.3.4.
Every advisory for vite 5.0.6
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.
CriticalCVE-2025-31125 on OSV.dev (opens in a new tab)GHSA-4r4m-qw57-chr8Exploited in the wild (CISA)EPSS: top 1%
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Fixed in 5.4.16. Published Mar 31, 2025.
WarningCVE-2025-30208 on OSV.dev (opens in a new tab)GHSA-x574-m823-4x7wEPSS: top 1%
Vite bypasses server.fs.deny when using ?raw??
Fixed in 5.4.15. Published Mar 25, 2025.
WarningCVE-2025-31486 on OSV.dev (opens in a new tab)GHSA-xcj6-pq6g-qj4xEPSS: top 2%
Vite allows server.fs.deny to be bypassed with .svg or relative paths
Fixed in 5.4.17. Published Apr 4, 2025.
CriticalCVE-2024-23331 on OSV.dev (opens in a new tab)GHSA-c24v-8rfc-w8vwEPSS: top 13%
Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
Fixed in 5.0.12. Published Jan 19, 2024.
WarningCVE-2025-32395 on OSV.dev (opens in a new tab)GHSA-356w-63v5-8wf4EPSS: top 23%
Vite has an `server.fs.deny` bypass with an invalid `request-target`
Fixed in 5.4.18. Published Apr 11, 2025.
LowCVE-2025-58751 on OSV.dev (opens in a new tab)GHSA-g4jq-h2w9-997cEPSS: top 32%
Vite middleware may serve files starting with the same name with the public directory
Fixed in 5.4.20. Published Sep 9, 2025.
WarningCVE-2025-46565 on OSV.dev (opens in a new tab)GHSA-859w-5945-r5v3EPSS: top 34%
Vite's server.fs.deny bypassed with /. for files under project root
Fixed in 5.4.19. Published Apr 30, 2025.
WarningCVE-2024-45811 on OSV.dev (opens in a new tab)GHSA-9cwx-2883-4wfxEPSS: top 36%
Vite's `server.fs.deny` is bypassed when using `?import&raw`
Fixed in 5.1.8. Published Sep 17, 2024.
WarningCVE-2025-62522 on OSV.dev (opens in a new tab)GHSA-93m4-6634-74q7EPSS: top 37%
vite allows server.fs.deny bypass via backslash on Windows
Fixed in 5.4.21. Published Oct 20, 2025.
WarningCVE-2026-39365 on OSV.dev (opens in a new tab)GHSA-4w7w-66w2-5vf9EPSS: top 39%
Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling
Fixed in 6.4.2. Published Apr 6, 2026.
WarningCVE-2024-31207 on OSV.dev (opens in a new tab)GHSA-8jhw-289h-jh2gEPSS: top 48%
Vite's `server.fs.deny` did not deny requests for patterns with directories.
Fixed in 5.0.13. Published Apr 3, 2024.
WarningCVE-2024-45812 on OSV.dev (opens in a new tab)GHSA-64vr-g452-qvp3EPSS: top 51%
Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS
Fixed in 5.1.8. Published Sep 17, 2024.
LowCVE-2025-58752 on OSV.dev (opens in a new tab)GHSA-jqfw-vq24-v9c3EPSS: top 53%
Vite's `server.fs` settings were not applied to HTML files
Fixed in 5.4.20. Published Sep 9, 2025.
CriticalCVE-2026-53571 on OSV.dev (opens in a new tab)GHSA-fx2h-pf6j-xcffEPSS: top 54%
vite: `server.fs.deny` bypass on Windows alternate paths
Fixed in 6.4.3. Published Jun 15, 2026.
CriticalCVE-2024-52011 on OSV.dev (opens in a new tab)GHSA-c27g-q93r-2cwfEPSS: top 58%
launch-editor vulnerable to command injection via the crafted request on Windows
Fixed in 5.4.9. Published Jun 3, 2026.
WarningCVE-2026-53632 on OSV.dev (opens in a new tab)GHSA-v6wh-96g9-6wx3EPSS: top 67%
launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows
Fixed in 6.4.3. Published Jun 15, 2026.
WarningCVE-2025-24010 on OSV.dev (opens in a new tab)GHSA-vg6x-rcgg-rjx6EPSS: top 80%
Websites were able to send any requests to the development server and read the response in vite
Fixed in 5.4.12. Published Jan 21, 2025.
Who is still on a vulnerable vite
32% of last week’s 195.3M 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.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly vite 5.0.6, 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.