CVE-2025-58752Vitejs Vite
Low 2.3 No auth needed
Follow: this CVE · Vitejs · Vitejs Vite We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 4.0
- 2.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 8, 2025
- Updated
- Sep 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
What to do
- Apply the vendor's security update for Vite.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vite |
≥ 7.1.0 < 7.1.5 |
7.1.5 |
npm install vite@7.1.5 |
| npm | vite |
≥ 7.0.0 < 7.0.7 |
7.0.7 |
npm install vite@7.0.7 |
| npm | vite |
≥ 6.0.0 < 6.3.6 |
6.3.6 |
npm install vite@6.3.6 |
| npm | vite |
< 5.4.20 |
5.4.20 |
npm install vite@5.4.20 |
Per OSV / GitHub Advisories (GHSA-jqfw-vq24-v9c3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | vite | < 5.4.20 |
| vitejs | vite | ≥ 6.0.0 < 6.3.6 |
| vitejs | vite | ≥ 7.0.0 < 7.0.7 |
| vitejs | vite | ≥ 7.1.0 < 7.1.5 |
Official advisories
- Multiple Vulnerabilities in SIDIS Prime Before V4.0.800 · Siemens · SSA-485750 · Mar 10, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Exploit Third Party Advisory