Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. CVE-2025-58752

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

September 9, 2025

Any HTML files on the machine were served regardless of the server.fs settings.

References

  • github.com/advisories/GHSA-jqfw-vq24-v9c3
  • github.com/vitejs/vite
  • github.com/vitejs/vite/blob/v7.1.5/packages/vite/CHANGELOG.md
  • github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f
  • github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e
  • github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea
  • github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6
  • github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3
  • nvd.nist.gov/vuln/detail/CVE-2025-58752

Code Behaviors & Features

Detect and mitigate CVE-2025-58752 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.4.20, all versions starting from 6.0.0 before 6.3.6, all versions starting from 7.0.0 before 7.0.7, all versions starting from 7.1.0 before 7.1.5

Fixed versions

  • 7.1.5
  • 7.0.7
  • 6.3.6
  • 5.4.20

Solution

Upgrade to versions 5.4.20, 6.3.6, 7.0.7, 7.1.5 or above.

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-23: Relative Path Traversal
  • CWE-284: Improper Access Control

Source file

npm/vite/CVE-2025-58752.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 28 Sep 2025 00:19:13 +0000.