Skip to main content
VulnerabilityPublished Updated

CVE-2025-58751: Vite middleware may serve files starting with the same name with the public directory

Affects viteSource GCVE Database

0
Compare
Authoritative record:CVE-2025-58751· Low 2.3

Not known to be exploited · public detection template (Nuclei) · CVSS 2.3 Low : upgrade to 7.1.5 when convenient.

Data as of 13 Nov 2026, 21:06 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Sep 2025

  2. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  3. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  4. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewvitepkg:brew/viteOther threatsAffected
  • >=2.5.1 <7.1.5
Fixed in
  • 7.1.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Vite version 7.1.5 that fixes this vulnerability. Users should upgrade affected Vite versions (>=2.5.1 <7.1.5) to 7.1.5 or later. Until patched, avoid exposing the Vite dev server to the network or avoid using symbolic links in the public directory to mitigate the risk.

Description

Vite middleware serving files from the public directory may incorrectly serve files outside the intended directory when symbolic links exist in the public directory and the server is exposed to the network. This occurs due to a path normalization and prefix check flaw in the middleware, allowing path traversal to access files outside the public directory despite deny rules. The issue affects Vite versions from 2.5.1 up to but not including 7.1.5 and has a low severity rating.

References

Community reviews

Loading reviews…