patchminder
Weaponized · Nuclei CVE-2025-58751

Path traversalin vitejs vite.

Published 8 Sep 2025 · Updated 9 Sep 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Low 2.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 4.0 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade vite to 5.4.20, 6.3.6, 7.0.7, 7.1.5 or later, whichever matches your release line.
  • Upgrade vite (npm) to 5.4.20, 6.3.6, 7.0.7, 7.1.5 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
vite
before 5.4.20
5.4.20
CVE record
vite
6.0.0 to before 6.3.6
6.3.6
CVE record
vite
7.0.0 to before 7.0.7
7.0.7
CVE record
vite
7.1.0 to before 7.1.5
7.1.5
CVE record
vite (npm)
7.1.0 to before 7.1.5
7.1.5
GitHub advisory
vite (npm)
7.0.0 to before 7.0.7
7.0.7
GitHub advisory
vite (npm)
6.0.0 to before 6.3.6
6.3.6
GitHub advisory
vite (npm)
before 5.4.20
5.4.20
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 4 Sep 2025
    CVE ID reserved by GitHub_M.
  2. 8 Sep 2025
    Published in the CVE List.
  3. 9 Sep 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
None known
NucleiVite Dev Server · Path Traversaldetection template

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vite vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-58751: Path traversal in vitejs vite. https://patchminder.com/cve/cve-2025-58751/ (accessed 5 December 2026).