CVE-2025-58752: Vite's `server.fs` settings were not applied to HTML files
Affects viteSource GCVE Database
Not known to be exploited · CVSS 2.3 Low : upgrade to 7.1.5 when convenient.
Data as of 13 Nov 2026, 21:06 UTC
- Patch
- Available – fixed in 7.1.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 7.1.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Vite to version 7.1.5 or later where this vulnerability is fixed. Until then, avoid exposing the Vite development or preview server to untrusted networks. No other mitigations are indicated by the vendor advisory.
Description
Vite versions from 2.5.1 up to but not including 7.1.5 have a vulnerability where the server.fs configuration settings are not applied to HTML files. This allows HTML files outside the allowed directories to be served by the development and preview servers if the server is exposed to the network. The issue arises because certain middleware serving HTML files bypass the file system access restrictions. This can lead to unauthorized disclosure of HTML files on the host machine.
References
- github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-58752 (opens in a new tab)
- github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f (opens in a new tab)
- github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e (opens in a new tab)
- github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea (opens in a new tab)
- github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- github.com/vitejs/vite/blob/v7.1.5/packages/vite/CHANGELOG.md (opens in a new tab)