Skip to main content
← All vulnerabilities
CVE-2025-58751GHSA-G4JQ-H2W9-997C

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.20, 6.3.6, 7.0.7, 7.1.5
1 Nuclei template
  • 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, files starting with the same name with the public directory were served bypassing the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or `server.host` config option), use the public directory feature (enabled by default), and have a symlink in the public directory are affected. 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 7

GitHub · vitejs/vite

GitHub · lukeed/sirv

GitHub · projectdiscovery/nuclei-templates