---
id: CVE-2025-58752
title: Vite is a frontend tooling framework for JavaScript
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, any HTML files on the machine were served regardless
  of the `server.fs` settings. Only apps that explicitly expose the Vite dev
  serve…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-23
  - CWE-200
  - CWE-284
vendor: vitejs
product: vite
affected:
  - vite < 5.4.20
  - 'vite >= 6.0.0, < 6.3.6'
  - 'vite >= 7.0.0, < 7.0.7'
  - 'vite >= 7.1.0, < 7.1.5'
patched:
  - vite 7.1.5
published: '2025-09-08'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-58752'
references:
  - url: >-
      https://github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f
    label: security-advisories@github.com
  - url: >-
      https://github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e
    label: security-advisories@github.com
  - url: >-
      https://github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea
    label: security-advisories@github.com
  - url: >-
      https://github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6
    label: security-advisories@github.com
  - url: 'https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3'
    label: security-advisories@github.com
  - url: 'https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00608
epssPercentile: 0.47098
ingestedAt: '2026-09-30T23:29:32.374Z'
---

## Overview

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.

## Affected

- `vite < 5.4.20`
- `vite >= 6.0.0, < 6.3.6`
- `vite >= 7.0.0, < 7.0.7`
- `vite >= 7.1.0, < 7.1.5`

## Remediation

Upgrade past the affected range:

- `vite 7.1.5`
