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

CVE-2025-32395: Vite has an `server.fs.deny` bypass with an invalid `request-target`

April 11, 2025

The contents of arbitrary files can be returned to the browser if the dev server is running on Node or Bun.

References

  • github.com/advisories/GHSA-356w-63v5-8wf4
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/175a83909f02d3b554452a7bd02b9f340cdfef70
  • github.com/vitejs/vite/security/advisories/GHSA-356w-63v5-8wf4
  • nvd.nist.gov/vuln/detail/CVE-2025-32395

Code Behaviors & Features

Detect and mitigate CVE-2025-32395 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 4.5.13, all versions starting from 5.0.0 before 5.4.18, all versions starting from 6.0.0 before 6.0.15, all versions starting from 6.1.0 before 6.1.5, all versions starting from 6.2.0 before 6.2.6

Fixed versions

  • 6.2.6
  • 6.1.5
  • 6.0.15
  • 5.4.18
  • 4.5.13

Solution

Upgrade to versions 4.5.13, 5.4.18, 6.0.15, 6.1.5, 6.2.6 or above.

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/vite/CVE-2025-32395.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:47 +0000.