Skip to main content
← All vulnerabilities
CVE-2025-58752GHSA-JQFW-VQ24-V9C3

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.20, 6.3.6, 7.0.7, 7.1.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • vitejs vite

    fixed in 5.4.20; From 6.0.0 · fixed in 6.3.6; From 7.0.0 · fixed in 7.0.7; From 7.1.0 · fixed in 7.1.5

  • vitenpm

    From 7.1.0 · fixed in 7.1.5

  • vitenpm

    From 7.0.0 · fixed in 7.0.7

  • vitenpm

    From 6.0.0 · fixed in 6.3.6

  • vitenpm

    fixed in 5.4.20

References 5

GitHub · vitejs/vite