CVE-2025-58752CWE-200CWE-23CWE-284broken-access-controlinformation-disclosure

CVE-2025-58752

Medium · published September 9, 2025

CVSS v3.1
5.3
EPSS
1%
Percentile
48.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00608 · 48.4th percentile
Weaknesses
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-23 · Relative Path Traversal; CWE-284 · Improper Access Control
Published
2025-09-09T03:15Z
Affected products (4)
ProductVersionsFixed in
vitejs/vite< 5.4.205.4.20
vitejs/vite≥ 6.0.0, < 6.3.66.3.6
vitejs/vite≥ 7.0.0, < 7.0.77.0.7
vitejs/vite≥ 7.1.0, < 7.1.57.1.5
References (6)
EPSS history
Timeline
  • 08 SEP 22:56Z
    Vite's `server.fs` settings were not applied to HTML files
    cvelistv5