Skip to main content
VulnerabilityPublished Updated

CVE-2025-58752: Vite's `server.fs` settings were not applied to HTML files

Affects viteSource GCVE Database

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

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

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. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

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

    Not in CISA KEV and no source reports exploitation

  5. 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

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

Community reviews

Loading reviews…